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

x/pptr/mod.ts>Frame#tap

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

This method fetches an element with selector, scrolls it into view if needed, and then uses Page.touchscreen to tap in the center of the element.

Parameters

selector: string
  • the selector to tap.

Returns

Promise<void>

a promise that resolves when the element has been tapped.