Latest
method Keyboard.prototype.down
import { Keyboard } from "https://dotland.deno.dev/x/puppeteer@16.2.0/vendor/puppeteer-core/puppeteer/types.d.ts";

Dispatches a keydown event.

Parameters

key: KeyInput
  • Name of key to press, such as ArrowLeft. See {@link KeyInput} for a list of all key names.
optional
options: { text?: string; }
  • An object of options. Accepts text which, if specified, generates an input event with this text.

Returns

Promise<void>