Const
Call this InteractorConstructor to initialize a radio button Interactor. The radio button interactor can be used to interact with radio buttons on the page and to assert on their state.
The radio button is located by the text of its label.
await RadioButton('Public').click();await RadioButton('Private').is({ disabled: true });await RadioButton({ id: 'privacy-public', disabled: true }).exists(); Copy
await RadioButton('Public').click();await RadioButton('Private').is({ disabled: true });await RadioButton({ id: 'privacy-public', disabled: true }).exists();
title
id
visible
true
valid
checked
disabled
false
focused
click()
choose()
focus()
blur()
Call this InteractorConstructor to initialize a radio button Interactor. The radio button interactor can be used to interact with radio buttons on the page and to assert on their state.
The radio button is located by the text of its label.
Example
Filters
title
: string – Filter by titleid
: string – Filter by idvisible
: boolean – Filter by visibility. Defaults totrue
. See isVisible.valid
: boolean – Filter by whether the radio button is valid.checked
: boolean – Filter by whether the radio button is checked.disabled
: boolean – Filter by whether the radio button is disabled. Defaults tofalse
.focused
: boolean – Filter by whether the radio button is focused. See focused.Actions
click()
: Interaction – Click on the radio buttonchoose()
: Interaction – Click on the radio buttonfocus()
: Interaction – Focus the radio buttonblur()
: Interaction – Blur the radio button