MCPcopy
hub / github.com/angular/components / selectOptions

Method selectOptions

src/cdk/testing/test-element.ts:173–173  ·  view source on GitHub ↗

Selects the options at the specified indexes inside of a native `select` element.

(...optionIndexes: number[])

Source from the content-addressed store, hash-verified

171 // https://github.com/angular/angular/blob/main/packages/forms/src/directives/select_control_value_accessor.ts#L19
172 /** Selects the options at the specified indexes inside of a native `select` element. */
173 selectOptions(...optionIndexes: number[]): Promise<void>;
174
175 /**
176 * Dispatches an event with a particular name.

Callers 3

selectOptionsMethod · 0.65
crossEnvironmentSpecsFunction · 0.65

Implementers 3

ProtractorElementsrc/cdk/testing/protractor/protractor-
SeleniumWebDriverElementsrc/cdk/testing/selenium-webdriver/sel
UnitTestElementsrc/cdk/testing/testbed/unit-test-elem

Calls

no outgoing calls

Tested by

no test coverage detected