Click checbox depending on variable output

Now it works!!! Thank you! :partying_face: :partying_face:

And if the number doesn’t appear in that page and I want to click “Av.Página”. Which actvitiy should I use?

browser

Great to hear! Use Element Exists activity and set the same selector as in Get Attribute. Save the result to NumberExists (boolean). Then use an If activity with NumberExists as the condition. In the Then section move in the Get Attribute and the two Click activities. In the Else section, use a Click activity to click the “Av.Página” button.

Selector for Element Exists:
image

Ok, I thought it will be like that. And which expression do I have to write in IF activity?
“Variable Result from find element”.Equal(True)?

Just the result variable. E.g. if the variable is called NumberExists:

If NumberExists

And it should be Element Exists, not Find Element.

It works!!!

Thank you very much for your help :smiley: :smiley:

1 Like