Skip to content

RadioButtonWrapper class

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

Extends ElementWrapper.

Instance Members

isSelected

Check if radioButton is selected.

Examples

await radioButton('Vehicle').isSelected()

Parameters

This API does not have any parameters.

Returns

Type Description
boolean true if selected, else false

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

Name Type Description
retryInterval number Retry Interval in milliseconds (defaults to global settings).
retryTimeout number Retry Timeout in milliseconds (defaults to global settings).

Returns

Type Description
Array<RadioButton> Array of all radioButtons matching the selector.