Skip to main content
Version: Next

Puppeteer.registerCustomQueryHandler() method

Warning: This API is now obsolete.

Import directly puppeteer.

Signature:

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

Parameters

ParameterTypeDescription
namestring
queryHandlerCustomQueryHandler

Returns:

void

Example

import {registerCustomQueryHandler} from 'puppeteer';