Skip to content

CheckBoxWrapper class

Behaves the same as ElementWrapper + isChecked()/check()/uncheck(). Represents HTML Input Checkbox

Extends ElementWrapper.

Get state of selected checkbox.

await checkBox('Vehicle').isChecked()

This API does not have any parameters.

TypeDescription
booleantrue if checked, else false

Set checkbox to ‘checked’ state.

await checkBox('Vehicle').check()

This API does not have any parameters.

This API does not return any values.

Clears checkbox’s state, if set.

await checkBox('Vehicle').uncheck()

This API does not have any parameters.

This API does not return any values.

Overrides ElementWrapper#elements, but for Checkbox elements.

NameTypeDescription
retryIntervalnumberRetry Interval in milliseconds (defaults to global settings).
retryTimeoutnumberRetry Timeout in milliseconds (defaults to global settings).
TypeDescription
Array<CheckBox>Array of all checkboxes matching the selector.