warningUse locator-based locator.selectOption() instead.
Selects one or more options which match the values from a <select> element.
Parameter | Type | Default |
---|---|---|
selector | string | '' |
values | string or string[] or object | '' |
options | object | null |
Returns
Type | Description |
---|---|
string[] | List of the selected options. |