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

625 B

sidebar_label
Puppeteer.registerCustomQueryHandler

Puppeteer.registerCustomQueryHandler() method

Warning: This API is now obsolete.

Import directly puppeteer.

Signature:

class Puppeteer {registerCustomQueryHandler(name: string, queryHandler: CustomQueryHandler): void;}

Parameters

Parameter Type Description
name string
queryHandler CustomQueryHandler

Returns:

void

Example

import { registerCustomQueryHandler } from 'puppeteer';