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

x/pptr/src/Input.ts>Mouse#click

Headless Chrome Deno API
Latest
method Mouse.prototype.click
import { Mouse } from "https://deno.land/x/pptr@1.2.0/src/Input.ts";

Shortcut for mouse.move, mouse.down and mouse.up.

Parameters

x: number
  • Horizontal position of the mouse.
y: number
  • Vertical position of the mouse.
optional
options: MouseOptions & { delay?: number; } = [UNSUPPORTED]
  • Optional MouseOptions.

Returns

Promise<void>