Answered

Need Help to verify color of a Tab

Hello Team,

Test Case Name: NewAW_ProgressBar_UpcomingSections
Test Case Id: 11349

In this test case we need to verify the color(light blue) of the Agreement Characters. Please help us to verify the color of the Agreement characters

 

Attached Screenshot for your reference

Agreement Tab

HTML :

0
5 comments
Avatar
Joseph Hamdan

Hi Padmasaran,

The following questions will better assist us with your request:

1- Could you please let us know which step in the test case reaches 'Agreements' link ?

2- By verification, are you planning to make the test case stop and fail if the link has a different color or just as an additional step?

Regards,

Subject7 Team

0
Comment actions Permalink
Avatar
Joseph Hamdan

Hi Padmasaran,

In addition to the questions above, have you tried using Get_Web_Value with CSS that uses the color property in the second image ?

Regards,

Subject7 Team

0
Comment actions Permalink
Avatar
Padmasaran

Hello Team,

The following are the answers for the above questions,

1. We need to validate agreement color after step no: 58, the color will change from white to light blue once the test cases reaches step 58.
2. Yes, By verification, if the color is other than light blue, the test case should fail.
3. No, we don't how to use Get_Web_Value with CSS.

Please guide us how to work on this test case.

Thanks
Padmasaran

 

0
Comment actions Permalink
Avatar
Joseph Hamdan

Hi Padmasaran,

Here are the steps to perform your request:

1- Define a locator for 'Agreements'

2- In a Get_Web_Value step, select the locator defined in step 1, choose "CSS" as Type and enter a variable name.

3- In the 'Attribute (Required)' text box, add the CSS property 'color'

4- Add a step with 'IF' command where the right value takes the variable from step 2 and the left value takes the color that you wish for the 'Agreements' to have. As we can see in the second snapshot, the color is '#b8e9ff'

5- The remaining steps decide what happens for each condition, if the color passes, you can insert any command such as Print, or if the condition did not pass and you wish to fail the test, you can use Assert command.

Please let us know if this works or if you have any other questions.

Regards,

Subject7 Team

0
Comment actions Permalink
Avatar
Padmasaran

Hello Team,

Thanks a lot. It is working fine.

 

Thanks
Padmasaran

0
Comment actions Permalink

Please sign in to leave a comment.