MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / tap

Function tap

javascript/atoms/typescript/type.ts:173–176  ·  view source on GitHub ↗
(keyboard: Keyboard, key: Key)

Source from the content-addressed store, hash-verified

171}
172
173function tap(keyboard: Keyboard, key: Key): void {
174 keyboard.pressKey(key)
175 keyboard.releaseKey(key)
176}
177
178// Shift is held around a character that needs it, unless already held.
179function typeCharacter(keyboard: Keyboard, ch: string): void {

Callers 3

typeFunction · 0.85
pressWebDriverKeyFunction · 0.85
typeCharacterFunction · 0.85

Calls 2

pressKeyMethod · 0.80
releaseKeyMethod · 0.80

Tested by

no test coverage detected