Try Catch for Web Page Automation



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?


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