MCPcopy Create free account
hub / github.com/ChromeDevTools/devtools-frontend / pressKey

Method pressKey

test/e2e/shared/page-wrapper.ts:113–117  ·  view source on GitHub ↗
(key: puppeteer.KeyInput, modifiers?: KeyModifiers)

Source from the content-addressed store, hash-verified

111 }
112
113 async pressKey(key: puppeteer.KeyInput, modifiers?: KeyModifiers) {
114 await this.#withKeyModifiers(async () => {
115 await this.page.keyboard.press(key);
116 }, modifiers ?? {});
117 }
118
119 /**
120 * Get a single element handle. Uses `pierce` handler per default for piercing Shadow DOM.

Callers 15

tabBackwardMethod · 0.95
snippets.test.tsFile · 0.80
openSearchBarFunction · 0.80
inspectNodeFunction · 0.80
submitAndWaitTillDoneFunction · 0.80

Calls 1

#withKeyModifiersMethod · 0.95

Tested by 9

openSearchBarFunction · 0.64
inspectNodeFunction · 0.64
submitAndWaitTillDoneFunction · 0.64
setupRequestBlockingFunction · 0.64
addWatchExpressionFunction · 0.64
setupCoveragePanelFunction · 0.64
expandIframeContentFunction · 0.64