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

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

Parameters

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

Returns

Promise<void>