Search for an element across web pages and click on it when found

uiautomation
studio
web

#1

Hello,

I have to search for an element dynamically from this list as shown in the picture and click on it. Suppose that the name of the element to be clicked is stored in a string variable. I have to search each page for the element by clicking on next page every time till I find the element.
How do I automate this?


#2
  1. Make a do while loop
  2. Insert a element exists activity, searching for your text
  3. If it’s not found, click on next page and simultanously use that condition to continue the loop
  4. If it’s found, insert a click activity

That should do the trick, but there might be better ways :slight_smile: You do need to add another condition to end the loop at the last page, btw.