Try Catch for Web Page Automation

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.

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.

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

1 Like

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

1 Like

can anyone share an example for this:

I have couple of URLs and i have to verify all if all is up or down and sent the reports how can i manage this. as i am able to read all url from excel but if in some case any url down then how i can write it on reports as fail and proceed to next url with Pass