Skip to main content
Module

x/puppeteer/mod.ts>InternalQueryHandler

A port of puppeteer running on Deno
Latest
interface InternalQueryHandler
Re-export
import { type InternalQueryHandler } from "https://deno.land/x/puppeteer@16.2.0/mod.ts";

Properties

optional
queryOne: (element: ElementHandle<any>, selector: string) => Promise<ElementHandle<any> | null>

Queries for a single node given a selector and ElementHandle.

Akin to Window.prototype.querySelector.

optional
queryAll: (element: ElementHandle<any>, selector: string) => Promise<Array<ElementHandle<any>>>

Queries for multiple nodes given a selector and ElementHandle.

Akin to Window.prototype.querySelectorAll.

optional
queryAllArray: (element: ElementHandle<any>, selector: string) => Promise<JSHandle<any[]>>

Queries for multiple nodes given a selector and ElementHandle. Unlike queryAll, this returns a handle to a node array.

Akin to Window.prototype.querySelectorAll.

optional
waitFor: (
isolatedWorld: IsolatedWorld,
selector: string,
options: WaitForSelectorOptions,
) => Promise<ElementHandle<any> | null>

Waits until a single node appears for a given selector and ElementHandle.

Akin to Window.prototype.querySelectorAll.