I have one workflow where I am adding many steps like click, type into, write line and many more. I want to apply exceptional handling in such a way that if any error ocurred while writing or clicking or something else then it should close the browser everytime.
I took this workflow in try block. In the catch block I pasted the code for closing browser and writing status in excel file. But the catch block is not executing. I have not used throw or rethrow.
Pls try to - disable “Continue On Error” in activities wrap steps in Try-Catch, close browser and log error in Catch block, and use Throw or Global Exception Handler if needed.
If helpful, mark as solution. Happy automation with UiPath