CheckBox
CheckBox
Ticks or unticks a checkbox on a web page. It works three ways: by CSS selector in the browser, on an element already captured, or on an element from a list.
Options
Select the action
The action's mode. What you pick here decides which of the other fields appear.
An element in the browser
Works with the checkbox using a CSS selector on the page.
Browser or page ID
The browser, tab or iframe opening action used as the context.
Element selector
The CSS selector identifying the checkbox, input#acceptTerms for example.
An element already selected
Works with a checkbox captured earlier by a Get element action.
Element ID
The action that captured the checkbox element.
One item from a selection of multiple elements
Works with a checkbox from a list captured by a Get elements action.
Elements list id
The action that captured the list.
Enter the index of the list
The checkbox's position in the list. The index starts at 0.
Check or Uncheck checkbox?
Whether the checkbox ends up checked (option on) or unchecked (option off). Default: off.
Element state
The condition the checkbox has to be in beforehand: Visible, Invisible/hidden, Present in the DOM or Not present in the DOM. Default: Visible.
Timeout
How long, in seconds, the robot waits for the checkbox to be available before failing. Default: 120.
Returns
This action has no returns.
Rules and conditions
- Select the action has to be set before the other fields.
- In An element in the browser mode, the page ID and the CSS selector are both required.
- The action sets the checkbox directly to the state you configured, whatever state the page had it in.
- If the checkbox is not found within the timeout, the robot stops with an error.