RadioButtonWrapper class
Behaves the same as ElementWrapper + select()/deselect()/isSelected(). Represents HTML Input Radio tag.
Extends ElementWrapper.
Instance Members
Section titled “Instance Members”isSelected
Section titled “isSelected”Check if radioButton is selected.
Examples
Section titled “Examples”await radioButton('Vehicle').isSelected()Parameters
Section titled “Parameters”This API does not have any parameters.
Returns
Section titled “Returns”| Type | Description |
|---|---|
| boolean | true if selected, else false |
select
Section titled “select”Select the radioButton.
Examples
Section titled “Examples”await radioButton('Vehicle').select()Parameters
Section titled “Parameters”This API does not have any parameters.
Returns
Section titled “Returns”This API does not return any values.
deselect
Section titled “deselect”Reset the radioButton.
Examples
Section titled “Examples”await radioButton('Vehicle').deselect()Parameters
Section titled “Parameters”This API does not have any parameters.
Returns
Section titled “Returns”This API does not return any values.
elements
Section titled “elements”Overrides ElementWrapper#elements, but for RadioButton elements.
Parameters
Section titled “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
Section titled “Returns”| Type | Description |
|---|---|
| Array<RadioButton> | Array of all radioButtons matching the selector. |