My activity would need to click it, to display a data table which then I will extract using “Extract Data Table” activity.
The problem is sometimes that UI is not available, and my click will prompt error and bot will stop.
How do I handle such UI error?
I wanna be able to continue to the next activity, but I want to input a variable = “Data not found” in my output result.
I found out I can use Try catch, how do I use the activity correctly to handle this, I tried before but it is not working as intended it on my other automation.
You can use the Check app state activity and indicate on the Ui element. In the Target Appear block insert the click activity and indicate the Ui element.
If the Particular Ui element appears then only it will click on Ui element.
In the Check app state activity there is one more block called Element does not appear, in that block insert the Assign activity to initialize the variable with “Data is not found”
Check the below image which helps you for understanding,