Module

x/puppeteer/mod.ts>Frame#$

A port of puppeteer running on Deno
Latest
method Frame.prototype.$
import { Frame } from "https://dotland.deno.dev/x/puppeteer@16.2.0/mod.ts";

Queries the frame for an element matching the given selector.

Type Parameters

Selector extends string

Parameters

selector: Selector
  • The selector to query for.

Returns

Promise<ElementHandle<NodeFor<Selector>> | null>

A {@link ElementHandle | element handle} to the first element matching the given selector. Otherwise, null.