puppeteer/docs/api/puppeteer.commoneventemitter.addlistener.md

531 B

sidebar_label
CommonEventEmitter.addListener

CommonEventEmitter.addListener() method

Signature:

interface CommonEventEmitter {
  addListener(event: EventType, handler: Handler): this;
}

Parameters

Parameter Type Description
event EventType
handler Handler

Returns:

this