Const
Call this InteractorConstructor to initialize a select Interactor. The select interactor can be used to interact with selects and to assert on their state.
For interacting with multiple selects, see MultiSelect.
The select is located by the text of its label.
await Select('Language').select('English');await Select('Language').has({ value: 'English' }); Copy
await Select('Language').select('English');await Select('Language').has({ value: 'English' });
title
id
valid
required
description
value
visible
true
disabled
false
focused
click()
focus()
blur()
choose(text: string)
Call this InteractorConstructor to initialize a select Interactor. The select interactor can be used to interact with selects and to assert on their state.
For interacting with multiple selects, see MultiSelect.
The select 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 is valid.required
: boolean – Filter by whether the select is required.description
: string – Filter by description.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 is disabled. Defaults tofalse
.focused
: boolean – Filter by whether the select is focused. See focused.Actions
click()
: Interaction – Click on the selectfocus()
: Interaction – Move focus to the selectblur()
: Interaction – Move focus away from the selectchoose(text: string)
: Interaction – Choose the option with the given text from the select.