import { Keyboard } from "https://deno.land/x/pptr@1.2.0/src/Input.ts";
Sends a keydown
, keypress
/input
,
and keyup
event for each character in the text.
Examples
Example 1
Example 1
await page.keyboard.type('Hello'); // Types instantly
await page.keyboard.type('World', {delay: 100}); // Types slower, like a user