Skip to main content
Module

x/puppeteer/mod.ts>ElementHandle#$

A port of puppeteer running on Deno
Latest
method ElementHandle.prototype.$
Re-export
import { ElementHandle } from "https://deno.land/x/puppeteer@16.2.0/mod.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.