Clicking a refresh button over and over until an element appears

Hello everyone,

I am building bot that requires the user to click a refresh button over and over until an element appears below it. Sometimes this takes 2 minutes, other times it can take 10 minutes. I do not have activities like element exists, or refresh browser, so I would like some help on the proper way to do it. I have tried while loops and check app state but have had no success. Any help would be appreciated.

Thanks

Hi,

You can make the use of Retry scope. Pls refer to the below link:

Thanks

@srobey888

Welcome to the community

In the modern click activity you have a verify execution option…which will repeat the action of click till the verification passes…in the verification you can indicate the button you are expecting and procide a retry number

https://docs.uipath.com/activities/other/latest/ui-automation/n-click

Hope this helps

Cheers

You’d need to do something like this:


(elementAppeared is a variable set to the Result from Check App State)

Hi,
you can use retry scope and inside these put Element Exists
or On element appear activity.