Read and Review Automation Anywhere Documentation

Automation 360

Close Contents

Contents

Open Contents

Using the Click action

  • Updated: 3/11/2021
    • Automation 360 v.x
    • Build
    • RPA Workspace

Using the Click action

Use the Click action to enable a bot to simulate mouse clicks. This action enables to capture the UI element such as the screen or window, and to specify the click event and click button.

Prerequisites

Ensure that the screen scale and resolution of the Bot Creator device is the same as the Bot Runner device. If the screen scale and resolution are different, the bot might fail when deployed to the Bot Runner device.

If you are using Internet Explorer, the bot waits until the browser is completely rendered and is in a ready state before executing the Click action.

Procedure

Follow these steps to add a Click action:

  1. In the Actions palette, double-click or drag the Click action from the Mouse package.
  2. Specify the window in which to capture the mouse click:
    Choose from the Application, Browser, or Variable tab.
    OptionDescription
    Application Select from a list of currently active windows.
    Note: You can use the Screen option to capture coordinates on the device screen, however we recommend specifying a window because screen sizes can change, which distorts the captured coordinates.
    Browser Select from a list of Google Chrome tabs.
    Variable Select an existing window variable to specify the title of the application window title.
    Note: This option deactivates the Capture option. Use this option only after you have completed the capture step.

    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.

  3. Optional: Select the Resize window option to specify the window dimensions.
    This option delivers a more reliable bot. It resizes the window to the dimensions at which the task was recorded, which enhances the bot's ability to identify the target object.
    • If the window is maximized when you record the task, this option is unselected.
    • If the window is not at the maximum size when you record the task, this option is selected by default and the width and height fields auto-fill with the window dimensions.
    Note: This option is only available for windows that can be resized. It is not available for the Desktop or Taskbar options.
  4. Click Capture coordinate.
    The selected window appears.
  5. Drag the mouse to select the click spot and left-click to capture it.
    The captured spot appears in the Preview section with the coordinates underneath.
  6. In the Button option, specify the button to click.
    Choose from Left Button, Right Button, or Middle Button.
  7. In the Event option, specify the event.
    Choose from Click, Double click, Button up, or Button down.
  8. Click Save.
Send Feedback