Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
method Keyboard.prototype.press
Re-export
import { Keyboard } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/api-docs-entry.js";

Shortcut for Keyboard.down and Keyboard.up.

Parameters

  • Name of key to press, such as ArrowLeft. See KeyInput for a list of all key names.
optional
options: { delay?: number; text?: string; }
  • An object of options. Accepts text which, if specified, generates an input event with this text. Accepts delay which, if specified, is the time to wait between keydown and keyup in milliseconds. Defaults to 0.

Returns

Promise<void>