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

x/pptr/mod.ts>Frame#click

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

This method clicks the first element found that matches selector.

Parameters

selector: string
  • the selector to search for to click. If there are multiple elements, the first will be clicked.
optional
options: { delay?: number; button?: MouseButton; clickCount?: number; } = [UNSUPPORTED]

Returns

Promise<void>