radioButton()
This selector lets you identify a radio button on a web page either with label or with attribute and value pairs and proximity selectors.
Examples
Section titled “Examples”await radioButton('Vehicle').exists()await radioButton({id:'radioButtonId'},below('text')).exists()await radioButton(below('text')).exists()Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
labelOrAttrValuePairs | Object | Either the label (human-visible name) of the text field or pairs of attribute and value like {“id”:“name”,“class”:“class-name”} |
_options | Object | |
args | relativeSelector |
Returns
Section titled “Returns”| Type | Description |
|---|---|
| RadioButtonWrapper |