Optional
abilityOptional
callStatic
optionSet the value of a Locator of type select to the given option.
the string representing the (select) locator.
options to select.
Optional
options: SelectActionOptions(optional) options for the select action.
new Select instance
simple call with just locator
Select.option(
page.locator('myLocator'),
'myOptionLabel'
);
with options for select
Select.option(
page.locator('myLocator'),
'myOptionLabel',
{ timeout: 3000 }
);
Generated using TypeDoc
Set the value of a Locator of type select to the given option.