Selecting an element based on other element

Hi all, I am currently writing an automation process and have stumbled across an issue. I am trying to click on an adjacent element, based on whether another element exists. I have tried many different things like dynamic selectors, but cannot seem to get it to work.

Basically, if the HTXA-********* exists, click on Show/Hide details.

This is probably really easy, but I’m a newbie! :frowning:

Try to get the selector form uiexplorer and from there you will get the more reliable selector and can try with adding a counter varible in your selector and use that variable to click on the corresponding element and use element exists and click activity.
Or you can use image exists and click image which will solve the issue but this is not prefered because you might have dfferent value in there.
Let us know if this helps.
Pavan H

I’ll give those a try and let you know, ty :slight_smile: