puppeteer/website/versioned_docs/version-22.6.3/api/puppeteer.pageevents.md
release-please[bot] a63b8305ac
chore: release main (#12190)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
2024-04-05 13:11:52 +00:00

2.6 KiB

sidebar_label
PageEvents

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

Property

Modifiers

Type

Description

Default

close

undefined

console

ConsoleMessage

dialog

Dialog

domcontentloaded

undefined

error

Error

frameattached

Frame

framedetached

Frame

framenavigated

Frame

load

undefined

metrics

{ title: string; metrics: Metrics; }

pageerror

Error

popup

Page | null

request

HTTPRequest

requestfailed

HTTPRequest

requestfinished

HTTPRequest

requestservedfromcache

HTTPRequest

response

HTTPResponse

workercreated

WebWorker

workerdestroyed

WebWorker