Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/pptr/mod.ts>Keyboard#sendCharacter

Headless Chrome Deno API
Latest
method Keyboard.prototype.sendCharacter
Re-export
import { Keyboard } from "https://deno.land/x/pptr@1.2.0/mod.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>