Skip to content

Click Activity

The Click activity performs a mouse click on a specific UI element within a native Windows desktop application, identified by an element locator or a label.

Field Description Requirement
Application instance The reference name of the application instance previously opened or attached. Required
Element The JSON-based selector identifying the target element. Required
Label An alternative to Element that identifies the target by label instead of a selector. Optional
Label match type Defines how Label is compared against candidate elements (e.g., Equals, Contains). Optional
Button The mouse button to use for the click (e.g., LEFT, RIGHT). Optional
Double click Enables a double-click action on the target element when selected. Optional
X-coordinate offset Adjusts the horizontal click position relative to the element by a specified pixel value. Optional
Y-coordinate offset Adjusts the vertical click position relative to the element by a specified pixel value. Optional

Action Types & Examples

Left Click

  • Format: string
  • Example Result: "LEFT"

Double Click

  • Format: boolean
  • Example Result: true

Implementation Examples

Field Setup - Application instance: ${notepadInstance} - Element: the target button or control identified by the UI Automation Inspector - Button: LEFT

Execution Parameters - Double click: true - X-coordinate offset: 5 - Y-coordinate offset: 0

Technical Notes

Label and Label match type provide an alternative to Element for identifying the target, useful when a stable selector is not available. Provide either Element or Label, not both.