MCPcopy Create free account
hub / github.com/angular/components / sendKeys

Method sendKeys

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

* Sends the given string to the input as a series of key presses. Also fires input events * and attempts to add the string to the Element's value. Note that some environments cannot * reproduce native browser behavior for keyboard shortcuts such as Tab, Ctrl + A, etc. * @throws An error if

(...keys: (string | TestKey)[])

Source from the content-addressed store, hash-verified

124 * @throws An error if no keys have been specified.
125 */
126 sendKeys(...keys: (string | TestKey)[]): Promise<void>;
127
128 /**
129 * Sends the given string to the input as a series of key presses. Also fires input

Callers 15

setValueMethod · 0.65
openMethod · 0.65
closeMethod · 0.65
removeMethod · 0.65
setValueMethod · 0.65
sendSeparatorKeyMethod · 0.65
finishEditingMethod · 0.65
openTimepickerMethod · 0.65
setValueMethod · 0.65
enterTextMethod · 0.65
dismissMethod · 0.65
setValueMethod · 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