Try Catch for Web Page Automation


#1

Hi,

I am trying to Automate Web activity. The automation breaks when a particular page does not load completely as UiPath cannot find the UI element. I want to use the try catch functionality to close the web page and reopen the web page.


#2

You could try to create a Flowchart and add a Flow decision stage.
If you find the output (True), then you proceed to the next stage. If not (false), then you add a sequence to close the webpage and repeat the process.


#3

So why not use a TryCatch block, and have the recovery procedure in the Catch section?


#4

Or even use RetryScope activity - it’s an ideal case for it.