Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Latest
method ElementHandle.prototype.$
import { ElementHandle } from "https://deno.land/x/puppeteer@16.2.0/vendor/puppeteer-core/puppeteer/common/ElementHandle.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 ElementHandle | element handle to the first element matching the given selector. Otherwise, null.