Skip to main content
The Deno 2 Release Candidate is here
Learn more
Go to Latest
method Frame.prototype.tap
import { Frame } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/common/FrameManager.d.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.