puppeteer/docs/api/puppeteer.puppeteer.registercustomqueryhandler.md

38 lines
798 B
Markdown
Raw Normal View History

2022-07-05 13:41:43 +00:00
---
sidebar_label: Puppeteer.registerCustomQueryHandler
---
# Puppeteer.registerCustomQueryHandler() method
> Warning: This API is now obsolete.
>
> Import directly puppeteer.
**Signature:**
```typescript
class Puppeteer {
registerCustomQueryHandler(
name: string,
queryHandler: CustomQueryHandler
): void;
}
```
## Parameters
| Parameter | Type | Description |
| ------------ | ------------------------------------------------------- | ----------- |
| name | string | |
| queryHandler | [CustomQueryHandler](./puppeteer.customqueryhandler.md) | |
**Returns:**
void
## Example
```ts
import {registerCustomQueryHandler} from 'puppeteer';
```