Taiko
Documentation

Home / API Reference

RadioButtonWrapper

extends ElementWrapper

Behaves the same as ElementWrapper + select()/deselect()/isSelected(). Represents HTML Input Radio tag.

Instance Members

isSelected

Check if radioButton is selected.

Examples
await radioButton('Vehicle').isSelected()
Parameters

This API does not have any parameters

Returns

true if selected, else false

boolean


select

Select the radioButton.

Examples
await radioButton('Vehicle').select()
Parameters

This API does not have any parameters

Returns

This API does not return any values


deselect

Reset the radioButton.

Examples
await radioButton('Vehicle').deselect()
Parameters

This API does not have any parameters

Returns

This API does not return any values


elements

Overrides ElementWrapper#elements , but for RadioButton 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 radioButtons matching the selector.

Array.<RadioButton>