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

x/pptr/src/FrameManager.ts>Frame#click

Headless Chrome Deno API
Latest
method Frame.prototype.click
import { Frame } from "https://deno.land/x/pptr@1.2.0/src/FrameManager.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>