I want to check whether an element exists on a page and take action accordingly. In short, I’m looking for a way to achieve something similar to the “Element Exist” activity in UiPath. How can I do this with which activity?
The first thing that came to my mind was to use the “Get Element” activity with the “Try Catch” activity. However, this approach may take a long time to work with dynamic selector structures.
Set min items to 0
If something was found the body will be executed, else it will skip it.
If you need to do something if nothing was found, save the result in a variable ( using the elements property on get element ) and then check the count