puppeteer/docs/api/puppeteer.puppeteer.registercustomqueryhandler.md
2022-07-05 15:41:43 +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';