puppeteer/website/versioned_docs/version-18.2.1/api/puppeteer.puppeteer.registercustomqueryhandler.md
2022-10-06 12:22:55 +02:00

798 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';