Skip to main content
Version: 21.6.1

PageEvents interface

Denotes the objects received by callback functions for page events.

See PageEvent for more detail on the events and when they are emitted.

Signature:

export interface PageEvents extends Record<EventType, unknown>

Extends: Record<EventType, unknown>

Properties

PropertyModifiersTypeDescriptionDefault
closeundefined
consoleConsoleMessage
dialogDialog
domcontentloadedundefined
errorError
frameattachedFrame
framedetachedFrame
framenavigatedFrame
loadundefined
metrics{ title: string; metrics: Metrics; }
pageerrorError
popupPage | null
requestHTTPRequest
requestfailedHTTPRequest
requestfinishedHTTPRequest
requestservedfromcacheHTTPRequest
responseHTTPResponse
workercreatedWebWorker
workerdestroyedWebWorker