Skip to main content

Click Desktop Element

Command description

Clicks a desktop element.

Command Input Parameters

Input parameterInput parameter typeDescription
Desktop ElementWinElement or str (captured element UID, not element name, not ms-rpa-id)Element to click. Select a captured element or use Get Desktop Element, Get Similar Desktop Elements, or Get Related Desktop Elements.
Click TypeenumMouse Click, Silent Click
Click MethodenumSingle Click, Double Click
Mouse ButtonenumLeft Button, Right Button
Click PositionenumRandom, Center
Modifier KeyenumNone, Alt, Ctrl, Shift
Post-Click DelaynumberTime to wait after clicking before continuing, in seconds
Element Wait DurationnumberMaximum time to wait for the element to appear, in seconds. The command reports an error if the element does not appear in time.

Command Output Parameters

None

Click type

click typeDescription
Mouse ClickBrings the element's window to the front, moves the pointer to the element, and clicks it
Silent ClickTriggers the click through UI Automation without moving the mouse. It is faster, but some elements do not support it

Type definition reference

tip
  • This command automatically brings the window to the front and restores it if minimized, so Activate Window is normally unnecessary.
  • Capture element reference Capture Desktop Elements

Example

Double-click the Chrome desktop icon to launch the browser.