acchu12b
11 years agoOccasional Contributor
Handling web page objects through if loop or any
Hi
I am creating a key word test and have a scenario as below:
if (condition)
choose item1 in the webpage
Else
choose item2 in the webpage
The issue here is even if my condition is not satisfied, all statements gets executed.
Please advice how to handle web object actions after if loop
I am creating a key word test and have a scenario as below:
if (condition)
choose item1 in the webpage
Else
choose item2 in the webpage
The issue here is even if my condition is not satisfied, all statements gets executed.
Please advice how to handle web object actions after if loop
- Your snippet is cut off at the left side so it's hard to tell, but I think your detail statements arent aligned with IF properly. Take a look at my attachments.