Best Practice - Handle Unresponsive Application
Use the Wait Until Screen Responds activity to make the bot wait for the application to respond again.
Context
Performing an action in a UI automation application can cause an application to get stuck in a busy state. The application isn't responding anymore, for example, the mouse icon is a timer and you can't click any element of the application. In such a case, the bot must know that it must wait until the application responds again. The reasons are the following:
-
You can't rely on a simple Wait activity because you don't know how long it takes to return to an idle state.
-
You can't use a Wait Element activity because the element might already exist on the screen.
-
You only want to make sure the application is in an idle state to resume work.
Use the Wait Until Srceen Responds activity after the action leading to the busy state. See the steps in this example:
