Win Click
Win Click
Section titled “Win Click”Type: win-click · Package: Desktop Activities v1.0.0
You click on a control in a desktop application: a button, a menu item, a tab, a cell. It is the most common interaction activity on the desktop.
How it works
Section titled “How it works”Locate the control by its selector and click. By default it uses the invoke method (activates control by its UIA pattern: reliable and does not require the window to be visible). You can choose the mouse button and, if necessary, the physical method. See interaction methods.
Required parameters
Section titled “Required parameters”| Parameter | Editor | Description |
|---|---|---|
selector | selector | The item to click. |
Optional parameters
Section titled “Optional parameters”| Parameter | Editor | Description |
|---|---|---|
session | session | Win Attach session. If omitted, the selector must include the window. |
button | list | Button: left (def.) · right · double (double click). |
clickType | list | Method: invoke (def., UIA pattern, recommended for buttons) · mouse (physical click). |
timeout | number | Maximum ms to wait for the element. By default 30000. |
Example
Section titled “Example”Win Click selector = (botón "Guardar")Win Click selector = (fila "Factura 001") button = doubleRelated activities
Section titled “Related activities”- Win Type — write to a field.
- Win Wait For — wait for the control to be ready.
- Win Check — for squares and spokes.