Clicks the element. The element's own click action is used by default, without moving the mouse (virtual click); optionally, it clicks with the mouse. By default, Element uses the element found by the Get Element activity.
⬅️INPUT
Parameter | Type | Required | Description |
|---|
AnimateMouse
| Boolean
| ❌ No | For mouse clicks, if True, the pointer travels to the target with a short movement (at most 300 ms) instead of jumping. |
Focus
| Boolean
| ❌ No | If True, the element is focused before clicking. |
Button
| MouseButtonEnum
| ❌ No | Mouse button: Left, Middle or Right. Default: Left. Buttons other than left always click with the mouse. |
OffsetX
| Int32
| ✅ Yes | For mouse clicks, horizontal distance from the element's left edge (pixels). Default: 5. |
OffsetY
| Int32
| ✅ Yes | For mouse clicks, vertical distance from the element's top edge (pixels). Default: 5. |
Element
| IElement
| ✅ Yes | The element to click. If empty (null), the activity throws an error. |
DoubleClick
| Boolean
| ❌ No | If True, double-clicks with the mouse. A virtual click performs a single click on most elements; for a double click, VirtualClick must be turned off. |
VirtualClick
| Boolean
| ❌ No | If True, the element's own click action is run without using the mouse: UI Automation Invoke on Windows, an in-page click in the browser, an SAP GUI command on SAP, the accessibility "click" action on Java. On Windows, if the element does not support this, it clicks with the mouse. Default: True. |
PostWait
| TimeSpan
| ❌ No | Time to wait after the click. A new activity gets the default wait time from the configuration; this time is initially 0. |
KeyModifiers
| String
| ❌ No | Keys to hold down during the click. Left Ctrl ({LCONTROL}), Left Alt ({LMENU}) or Left Shift ({LSHIFT}) can be selected from the list; multiple keys can be written in curly braces separated by commas (e.g. {LCONTROL, LSHIFT}). |