Conditional based link selection

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

  1. Text2=SS108828


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

You can use this CSS in your Test Object properties.


Replace blahblahblah with the correct text (I’m too lazy to type that out).

If string = "TEXT1 or Text2 or TEXT3 " then click the respective anchor tag

this is my condition how to do in katalon