Scroll Window Until Image is Found

I am looking to scroll a web-page looking for the first occurrence of an image (which I will click).

My thought is to use nestled if statements to accomplish this. If you see this then click else scroll X and if you... I would have to nest one inside another.

Is there a cleaner way to do this or a better command? How does the find image command work if I want to make sure it only does the first occurrence with is the one at the top most portion fo the screen/menu.

Yes, the better command for this sort of thing is mentioned right there in your subject title: Until. This should hopefully get you started:

2 Likes

Thanks this was SUPER helpful in building some automation to navigate the Basecamp web app more.

2 Likes