Latest
method ElementHandle.prototype.$
import { ElementHandle } from "https://dotland.deno.dev/x/puppeteer@16.2.0/vendor/puppeteer-core/puppeteer/types.d.ts";

Queries the current element 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.