puppeteer/docs/api/puppeteer.customqueryhandler.md

75 lines
962 B
Markdown
Raw Normal View History

2022-07-05 13:41:43 +00:00
---
sidebar_label: CustomQueryHandler
---
# CustomQueryHandler interface
#### Signature:
2022-07-05 13:41:43 +00:00
```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>
queryAll
</td><td>
`optional`
</td><td>
(node: Node, selector: string) =&gt; Iterable&lt;Node&gt;
</td><td>
Searches for some [Nodes](https://developer.mozilla.org/en-US/docs/Web/API/Node) matching the given `selector` from [node](https://developer.mozilla.org/en-US/docs/Web/API/Node).
</td><td>
</td></tr>
<tr><td>
queryOne
</td><td>
`optional`
</td><td>
(node: Node, selector: string) =&gt; Node \| null
</td><td>
Searches for a [Node](https://developer.mozilla.org/en-US/docs/Web/API/Node) matching the given `selector` from [node](https://developer.mozilla.org/en-US/docs/Web/API/Node).
</td><td>
</td></tr>
</tbody></table>