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

x/pptr/mod.ts>Touchscreen

Headless Chrome Deno API
Latest
class Touchscreen
Re-export
import { Touchscreen } from "https://deno.land/x/pptr@1.2.0/mod.ts";

The Touchscreen class exposes touchscreen events.

Constructors

new
Touchscreen(client: CDPSession, keyboard: Keyboard)

Properties

private
_client: CDPSession
private
_keyboard: Keyboard

Methods

tap(x: number, y: number): Promise<void>

Dispatches a touchstart and touchend event.