When my program executes the “click” activity, an error popup appears and the program stays in this activity. Unfortunately,The next step of recognizing the popup element doesn’t work because the program stays in the “click” activity and can’t perform the following exception catching activity. Even worse, it does not throw an error and the program cannot automatically stop.
Note that the error popup is generated after click, but the popup’s presence causes the software to recognize it as the “click” activity that does not end.
Now I want the program to jump out of the activity after click and continue with the activity that follows. Please help me if you have experience with this problem or a solution.
Background:
UiPath performs a click activity to the object, for example a button. There is an internal wait inthere, impervious to your timeout settings, to wait for a response from the application.
Now if the application throws a popup, to wait for a user command, “before” the button returned response, you get a very intense staring contest with the application waiting for a user, and the user (the Bot) waiting for the application.
The classic javascript alerts linked to onclick events are examples of this.
As Ashok stated: the solution is a parallel activity where one branch performs the click, the second one looks for the popup and removes it.
This requires a delicate approach: be sure to check if this popup always comes or not. If it is variable you need to build in the proper checks and timeouts on the popup handling, to not create new errors.
It might be a bit messy the first time you build it, but once working you’ll get the hang of it.