Skip to main content

Click Element

Clicks on a specific UI element identified by selectors.

Common Properties

  • Name - The custom name of the node.
  • Color - The custom color of the node.
  • Delay Before (sec) - Waits in seconds before executing the node.
  • Delay After (sec) - Waits in seconds after executing node.
  • Continue On Error - Automation will continue regardless of any error. The default value is false.
info

If the ContinueOnError property is true, no error is caught when the project is executed, even if a Catch node is used.

Inputs

  • Handle - The handle of the window to interact with.
  • Window Selector - The selector for identifying the target window.
  • Element Selector - The selector for identifying the target element.

Options

  • Mouse Button - The mouse button to use for clicking. Default is "Left Button".
    • Left Button - Single left click
    • Double Click - Double left click
    • Middle Button - Middle mouse button click
    • Right Button - Right mouse button click
  • Simulate Move - Whether to simulate mouse movement to the element before clicking. Default is false.
  • Show Window - Whether to show the window before interacting with it. Default is false.
  • Invoke Pattern - Whether to try using the element's invoke pattern before falling back to direct click. Default is false.
  • Focus - Whether to focus the element before clicking. Default is true.

How It Works

The Click Element node performs clicks on UI elements identified by selectors. When executed, the node:

  1. Uses the Window Selector and Element Selector to locate the target element
  2. If Focus is enabled, focuses the element
  3. Performs the specified mouse click action on the element
  4. If Invoke Pattern is enabled for left clicks, it first tries to use the element's invoke pattern before falling back to direct click

Usage Notes

  • Both Window Selector and Element Selector are required to identify the target element
  • The Invoke Pattern option is particularly useful for elements like buttons that have a specific invoke pattern
  • When Simulate Move is enabled, the mouse cursor will move to the element's position before clicking
  • If Invoke Pattern fails, the node will automatically fall back to direct clicking