Loop through a list on a webpage and choose the right text

Hi everyone :slight_smile:

So I am using a while loop on a page where I have to find a specific text, if it finds it it has to click on it and then see if it’s the right assignment (a number), if it is not it has to go back to the listen and then go from that text and further down the list to find the same text, to see if that is the assignment. And so on until it is the right assignment.
The thing I need help with is, when it’s not the right assignment, how does it go back and chosses from the next line? :smiley:


image

So this is how I have done it, and it works another place in my robot (exact same thing it has to do). And when the other place is done and find the right assignment it has do go on, but when it is not the right one it gets send to this (the pics), but it only goes through the list and just stops on the same title as before and can do that in a infinity loop, it doesnt wanna move because it is the right name

hi @silkefu
use flow chart if the text finds in the while loop it clicks the text and validates if not found it will retry with the while loop

i do have it in a flowchart, so it can loop through the list. but it stops on the same one everytime, because it starts at the beginning again

hi @silkefu

Drag FlowChart Activity

and create a loop as shoown below

it worked, thank you :slight_smile:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.