I am working with a list of orders in a web store, where each order line has a “Show More” button. I need to automate the process of clicking each “Show More” button and extracting the email address from the page that opens.
I have successfully made it work with a single button click, but I need help scaling this solution to handle all the order lines in the list. Can someone help me with a workflow that clicks each “Show More” button and extracts the email from the resulting page?
Thank you for your response. When I use the “For Each UI Element” activity, it selects not only the “Show More” buttons but also adjacent buttons like “Modify.” Additionally, it doesn’t select all of the “Show More” buttons, leaving some unselected. Is there a way to refine the selection so that it only targets the buttons containing the text “Show More,” or is there another method to narrow the selection criteria?
The program enters the “For Each UI Element” loop but does not go inside it. Inside the element, there’s a “Do” container, and within that, a “Click” activity. In the “For Each UI Element” activity, I first defined the target, and then in the properties, I set the “Strict Selector” to specifically target the “Show More” button. I validated and checked the selector, and it seemed correct. In the “Click” activity, I set the “Input Element” to “Current Element.” For some reason, the program doesn’t enter the “Do” container and proceed to the “Click” activity.
Edit: I managed to get the program working, thank you for your help. However, I’ve now added page navigation to the “For Each UI Element” activity. It seems to work correctly on the first page and then switches to the second page, clicks the first “Show More” button and extracts the email. Good so far. However, after that, it unexpectedly returns to the first page and starts the process again from there.