CheckBoxWrapper class
Behaves the same as ElementWrapper + isChecked()/check()/uncheck(). Represents HTML Input Checkbox
Extends ElementWrapper.
Instance Members
Section titled “Instance Members”isChecked
Section titled “isChecked”Get state of selected checkbox.
Examples
Section titled “Examples”await checkBox('Vehicle').isChecked()Parameters
Section titled “Parameters”This API does not have any parameters.
Returns
Section titled “Returns”| Type | Description |
|---|---|
| boolean | true if checked, else false |
Set checkbox to ‘checked’ state.
Examples
Section titled “Examples”await checkBox('Vehicle').check()Parameters
Section titled “Parameters”This API does not have any parameters.
Returns
Section titled “Returns”This API does not return any values.
uncheck
Section titled “uncheck”Clears checkbox’s state, if set.
Examples
Section titled “Examples”await checkBox('Vehicle').uncheck()Parameters
Section titled “Parameters”This API does not have any parameters.
Returns
Section titled “Returns”This API does not return any values.
elements
Section titled “elements”Overrides ElementWrapper#elements, but for Checkbox elements.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
retryInterval | number | Retry Interval in milliseconds (defaults to global settings). |
retryTimeout | number | Retry Timeout in milliseconds (defaults to global settings). |
Returns
Section titled “Returns”| Type | Description |
|---|---|
| Array<CheckBox> | Array of all checkboxes matching the selector. |