Skip to content

Pomeranian development reference / lib-essential/src/select / Select / selectOption

Method: selectOption() ​

selectOption(...args): Promise<string[]>

Defined in: packages/lib-essential/src/selectable-options.ts:12

Complete native selectOption action, retaining applicability, options, waiting and errors. Returns the native selected option values; routine tests may ignore them.

Parameters ​

args ​

...[values: string | readonly string[] | ElementHandle<Node> | readonly ElementHandle<Node>[] | { index?: number; label?: string; value?: string; } | readonly object[] | null, options?: object]

Returns ​

Promise<string[]>

Since ​

Available since @pomeranian/lib-essential@Unreleased

Inherited from ​

Element.with( SelectableOptions, ).selectOption

Context ​

Owner: Select.

Owner type parameters ​

Root ​

Root extends UnboundRoot = UnboundRoot

Unreleased @pomeranian/lib-essential API: @pomeranian/lib-essential implementation from main; no npm release is implied.

Unreleased development documentation from main. APIs and prototypes are labelled separately.