Wait element appear on UIPath

I want to use UI automation of UIPATH to automate a website, in that website, the robot need to click button to be able to download a file. and as i click the button the pop up window will be appeared.

however, the time duration of that screen to be appeared is vary depends on how heavy the file is. Is there a way in UIpath so I can wait that element to be appeared first, then continue the next action?

Hi @Raspi_Erwin

Yes, the easiest and fastest way is to use Find Element activity.

You have to simply give it the selector of the window that is going to appear and the process will wait until the selector is available. Very helpful in situations like yours.

Hi @Raspi_Erwin,
Alternatively, you can also use e.g. “on image appear”, or “on element appear”.

I recommend you using the retry scope activity for this.

I have attached a sample workflow, This workflow tries performing an action “n” times every “t” seconds. Set the default values for n and t in the variables.

The action, if bot fails to perform, then there is an inbuilt try catch implemented with Retry Scope. You won’t get an error until it had retried “n” times.

I have mentioned n as 3 and t as 5 seconds, so if you run this workflow in your system, the bot will not throw you an error until it has already retried 3 times.

Xaml File: RetryScopeDemo.xaml (9.8 KB)