Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Latest
method Keyboard.prototype.sendCharacter
import { Keyboard } from "https://deno.land/x/puppeteer@16.2.0/vendor/puppeteer-core/puppeteer/common/Input.d.ts";

Dispatches a keypress and input event. This does not send a keydown or keyup event.

Examples

Example 1

page.keyboard.sendCharacter('嗨');

Parameters

char: string
  • Character to send into the page.

Returns

Promise<void>