Read and Review Automation Anywhere Documentation

Automation 360

Close Contents

Contents

Open Contents

Using Wait for screen change action

  • Updated: 2/23/2021
    • Automation 360 v.x
    • Build
    • RPA Workspace

Using Wait for screen change action

Use the Wait for screen change action to wait for the content of a specific screen or the entire window to change before executing the next action.

For example, a Human Resources (HR) personnel automating leave-management tasks wants to log in to the HR portal. After entering the user credentials, this action enables the automation task to wait until the next screen loads.

Procedure

  1. In the Actions palette, double-click or drag the Wait for screen change action from the Wait package.
  2. In the Screen change relative to field, choose Window or Screen.
  3. Select an application window:
    OptionSteps
    Application From the drop-down list, select the window title from the open applications.
    • The Window title field displays the title of the application window you have selected.

      Insert a wildcard character (*) in the Window title field to search for window titles that can change. You can specify one or more wildcards (*) at the start, middle, or end of the value. For example, to perform an operation on any window that has Microsoft in the title, use a wildcard to indicate any string by adding it before or after the value: *Microsoft*. The bot first searches for the exact window title (Microsoft), and if it does not find a match, it searches for windows with the term Microsoft anywhere in the title.

      You can use a regular expression (regex) to identify a window title. Select the regular expression either as a String or Pattern for each regular expression condition and enter the value. By default, the Window title field is case-sensitive. You can enable Case insensitive regex flag to identify a window title that is not case-sensitive.

      For example, you can enter the String value as ((\w*)-Notepad for all the window title names starting with ((\w*)-Notepad, or use Pattern such as ((\w)\s)*document-Notepad for only those window titles that match this pattern.

    • The Executable field displays the complete path of the executable file to identify the right window.
    Variable Use a window variable to specify the application window you want to use.
  4. Enter values (in pixels) in the Left, Top, Width, and Height fields to specify the dimensions of the screen.
    The measurement starts from the top-left corner of the screen. Move vertically downward to indicate the height and horizontally from left to right to indicate the width.
  5. In the How long to wait before comparing screens? field, specify the wait time (in seconds) to begin comparing the window or screen.
    When a difference is detected, the comparison stops and the task proceeds to the next action.
  6. In the How long to wait before screen comparing is stopped? field, specify the wait time (in seconds) for the screen to change.
    If the screen does not change within the time you specified, the task proceeds with the next action.
  7. Select the Throw an exception if the screen is not changed option to show an error message and terminate the bot if the screen does not change.
    If the option is deselected and the screen does not change, the task proceeds with the next action.
  8. Click Save.
Send Feedback