I have scenario to test where i need to click anchor tag link based on the condition. Screenshot attached for your reference
1.Text1 = ALL
ALL
-
Text2=SS108828
SS108828
3.Text3=SS108829
SS108829
Any suggestion please
I have scenario to test where i need to click anchor tag link based on the condition. Screenshot attached for your reference
1.Text1 = ALL
ALL
3.Text3=SS108829
SS108829
Any suggestion please
You didn’t explain what the condition is.
The a-tags have IDs. You can create Test Objects using those IDs and click them using WebUI.click()
You can use this CSS in your Test Object properties.
#LiverpoolTheme_blahblahblah_ctl02_wt33
#LiverpoolTheme_blahblahblah_ctl04_wt33
Replace blahblahblah
with the correct text (I’m too lazy to type that out).
Condition
If string = "TEXT1 or Text2 or TEXT3 " then click the respective anchor tag
this is my condition how to do in katalon