How can you do a loop and check if there is a button else refresh?

I wanna do a loop, and checks if there is this specific button else it will refresh until its there.
and if there is that button it will press it etc.!!

Hi, you can do it like this:

How about when it sees certain text?

You just need to change first command to what you need, like

storeText | id=myTextElement | variableText

and in while

while | ‘${variableText}’ == ‘your text to comapre wiith text from page’