Skip to main content
Module

x/puppeteer/mod.ts>ElementHandle#press

A port of puppeteer running on Deno
Latest
method ElementHandle.prototype.press
Re-export
import { ElementHandle } from "https://deno.land/x/puppeteer@16.2.0/mod.ts";

Focuses the element, and then uses Keyboard.down and Keyboard.up.

Parameters

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

Returns

Promise<void>