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

Focuses the element, and then uses {@link Keyboard.down} and {@link Keyboard.up}.

Parameters

key: KeyInput
  • Name of key to press, such as ArrowLeft. See {@link KeyInput} for a list of all key names.
optional
options: PressOptions

Returns

Promise<void>