Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • PageEventObj

Index

Properties

close

close: undefined

Emitted when the page closes.

console

Emitted when JavaScript within the page calls one of console API methods, e.g. console.log or console.dir. Also emitted if the page throws an error or a warning.

dialog

dialog: Dialog

Emitted when a JavaScript dialog appears, such as alert, prompt, confirm or beforeunload. Puppeteer can respond to the dialog via Dialog's accept or dismiss methods.

domcontentloaded

domcontentloaded: never

Emitted when the initial HTML document has been completely loaded and parsed, without waiting for stylesheets, images, and subframes to finish loading.

error

error: Error

Emitted when the page crashes.

frameattached

frameattached: Frame

Emitted when a frame is attached.

framedetached

framedetached: Frame

Emitted when a frame is detached.

framenavigated

framenavigated: Frame

Emitted when a frame is navigated to a new url.

load

load: undefined

Emitted when the JavaScript load event is dispatched.

metrics

metrics: { metrics: Metrics; title: string }

Emitted when the JavaScript code makes a call to console.timeStamp. For the list of metrics see page.metrics.

Type declaration

pageerror

pageerror: Error

Emitted when an uncaught exception happens within the page.

popup

popup: Page

Emitted when the page opens a new tab or window.

request

request: Request

Emitted when a page issues a request. The request object is read-only. In order to intercept and mutate requests, see page.setRequestInterceptionEnabled.

requestfailed

requestfailed: Request

Emitted when a request fails, for example by timing out.

requestfinished

requestfinished: Request

Emitted when a request finishes successfully.

response

response: Response

Emitted when a response is received.

workercreated

workercreated: Worker

Emitted when a dedicated WebWorker is spawned by the page.

workerdestroyed

workerdestroyed: Worker

Emitted when a dedicated WebWorker is terminated.

Generated using TypeDoc