Skip to content

RadioButtonWrapper class

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

Extends ElementWrapper.

Check if radioButton is selected.

await radioButton('Vehicle').isSelected()

This API does not have any parameters.

TypeDescription
booleantrue if selected, else false

Select the radioButton.

await radioButton('Vehicle').select()

This API does not have any parameters.

This API does not return any values.

Reset the radioButton.

await radioButton('Vehicle').deselect()

This API does not have any parameters.

This API does not return any values.

Overrides ElementWrapper#elements, but for RadioButton elements.

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