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

Method sendKeys

src/cdk/testing/testbed/unit-test-element.ts:174–178  ·  view source on GitHub ↗
(...modifiersAndKeys: any[])

Source from the content-addressed store, hash-verified

172 */
173 async sendKeys(modifiers: ModifierKeys, ...keys: (string | TestKey)[]): Promise<void>;
174 async sendKeys(...modifiersAndKeys: any[]): Promise<void> {
175 const args = modifiersAndKeys.map(k => (typeof k === 'number' ? keyMap[k as TestKey] : k));
176 typeInElement(this.element as HTMLElement, ...args);
177 await this._stabilize();
178 }
179
180 /**
181 * Gets the text from the element.

Callers

nothing calls this directly

Calls 1

typeInElementFunction · 0.90

Tested by

no test coverage detected