Taiko
Documentation

Home / API Reference

CheckBoxWrapper

extends ElementWrapper

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

Instance Members

isChecked

Get state of selected checkbox.

Examples
await checkBox('Vehicle').isChecked()
Parameters

This API does not have any parameters

Returns

true if checked, else false

boolean


check

Set checkbox to 'checked' state.

Examples
await checkBox('Vehicle').check()
Parameters

This API does not have any parameters

Returns

This API does not return any values


uncheck

Clears checkbox's state, if set.

Examples
await checkBox('Vehicle').uncheck()
Parameters

This API does not have any parameters

Returns

This API does not return any values


elements

Overrides ElementWrapper#elements , but for Checkbox elements.

Parameters

retryInterval number

Retry Interval in milliseconds (defaults to global settings).


retryTimeout number

Retry Timeout in milliseconds (defaults to global settings).


Returns

Array of all checkboxes matching the selector.

Array.<CheckBox>