Call this InteractorConstructor to initialize an Interactor
for select boxes. The select interactor can be used to interact with select
boxes and to assert on their state.
For interacting with multiple select boxes, see MultiSelect.
The select box is located by the text of its label.
Call this InteractorConstructor to initialize an Interactor for select boxes. The select interactor can be used to interact with select boxes and to assert on their state.
For interacting with multiple select boxes, see MultiSelect.
The select box is located by the text of its label.
Example
Filters
title
: string – Filter by titleid
: string – Filter by idvalid
: boolean – Filter by whether the select box is valid.value
: string – Filter by the text of the selected option.visible
: boolean – Filter by visibility. Defaults totrue
. See isVisible.disabled
: boolean – Filter by whether the select box is disabled. Defaults tofalse
.focused
: boolean – Filter by whether the select box is focused. See focused.Actions
click()
: Interaction – Click on the select boxfocus()
: Interaction – Move focus to the select boxblur()
: Interaction – Move focus away from the select boxchoose(text: string)
: Interaction – Choose the option with the given text from the select box.