Win Check
Win Check
Section titled “Win Check”Type: win-check · Package: Desktop Activities v1.0.0
Check or uncheck a checkbox or radio button in a desktop application. It guarantees the final state you want, without depending on how it was before.
How it works
Section titled “How it works”Locates the control by its selector and takes it to the state indicated by state: checked checks it, unchecked unchecks it, toggle inverts the current state.
Required parameters
Section titled “Required parameters”| Parameter | Editor | Description |
|---|---|---|
selector | selector | The option box or button. |
Optional parameters
Section titled “Optional parameters”| Parameter | Editor | Description |
|---|---|---|
session | session | Win Attach session. If omitted, the selector must include the window. |
state | list | Estado deseado: checked (def.) · unchecked · toggle (invierte). |
timeout | number | Maximum in ms to wait. By default 30000. |
Example
Section titled “Example”Win Check selector = (casilla "Acepto términos") // marcarWin Check selector = (casilla "Recibir correos") state = unchecked // desmarcarRelated activities
Section titled “Related activities”- Win Click — for controls that are not checkboxes.
- Win Get Attribute — read
checkedstatus.