Back to Puppeteer

CustomQueryHandler interface

website/versioned_docs/version-24.40.0/api/puppeteer.customqueryhandler.md

19.2.2970 B
Original Source

CustomQueryHandler interface

Signature

typescript
export interface CustomQueryHandler

Properties

<table><thead><tr><th>

Property

</th><th>

Modifiers

</th><th>

Type

</th><th>

Description

</th><th>

Default

</th></tr></thead> <tbody><tr><td>

<span id="queryall">queryAll</span>

</td><td>

optional

</td><td>

(node: Node, selector: string) => Iterable<Node>

</td><td>

Searches for some Nodes matching the given selector from node.

</td><td> </td></tr> <tr><td>

<span id="queryone">queryOne</span>

</td><td>

optional

</td><td>

(node: Node, selector: string) => Node | null

</td><td>

Searches for a Node matching the given selector from node.

</td><td> </td></tr> </tbody></table>