Taiko
Documentation

Home / API Reference

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

await radioButton('Vehicle').select()
await radioButton('Vehicle').deselect()
await radioButton('Vehicle').isSelected()
await radioButton('Vehicle').exists()
await radioButton({id:'radioButtonId'},below('text')).exists()
await radioButton(below('text')).exists()

Parameters


attrValuePairs

Pairs of attribute and value like {"id":"name","class":"class-name"}


_options

_options.selectHiddenElements boolean

Option to include hidden elements.

Default value
false

label

The label (human-visible name) of the radio button.


args relativeSelector

Returns

ElementWrapper