2023-03-29 11:22:11 +00:00
|
|
|
---
|
2023-09-19 13:03:19 +00:00
|
|
|
sidebar_label: PageEvents
|
2023-03-29 11:22:11 +00:00
|
|
|
---
|
|
|
|
|
2023-09-19 13:03:19 +00:00
|
|
|
# PageEvents interface
|
2023-03-29 11:22:11 +00:00
|
|
|
|
|
|
|
Denotes the objects received by callback functions for page events.
|
|
|
|
|
2023-09-19 13:03:19 +00:00
|
|
|
See [PageEvent](./puppeteer.pageevent.md) for more detail on the events and when they are emitted.
|
2023-03-29 11:22:11 +00:00
|
|
|
|
|
|
|
#### Signature:
|
|
|
|
|
|
|
|
```typescript
|
2023-09-19 13:03:19 +00:00
|
|
|
export interface PageEvents extends Record<EventType, unknown>
|
2023-03-29 11:22:11 +00:00
|
|
|
```
|
|
|
|
|
2023-11-15 10:48:54 +00:00
|
|
|
**Extends:** Record<[EventType](./puppeteer.eventtype.md), unknown>
|
2023-09-19 13:03:19 +00:00
|
|
|
|
2023-03-29 11:22:11 +00:00
|
|
|
## Properties
|
|
|
|
|
2023-12-06 08:04:56 +00:00
|
|
|
| Property | Modifiers | Type | Description | Default |
|
|
|
|
| ---------------------- | --------- | ------------------------------------------------------------------------ | ----------- | ------- |
|
|
|
|
| close | | undefined | | |
|
|
|
|
| console | | [ConsoleMessage](./puppeteer.consolemessage.md) | | |
|
|
|
|
| dialog | | [Dialog](./puppeteer.dialog.md) | | |
|
|
|
|
| domcontentloaded | | undefined | | |
|
|
|
|
| error | | Error | | |
|
|
|
|
| frameattached | | [Frame](./puppeteer.frame.md) | | |
|
|
|
|
| framedetached | | [Frame](./puppeteer.frame.md) | | |
|
|
|
|
| framenavigated | | [Frame](./puppeteer.frame.md) | | |
|
|
|
|
| load | | undefined | | |
|
|
|
|
| metrics | | { title: string; metrics: [Metrics](./puppeteer.metrics.md); } | | |
|
|
|
|
| pageerror | | Error | | |
|
|
|
|
| popup | | [Page](./puppeteer.page.md) \| null | | |
|
|
|
|
| request | | [HTTPRequest](./puppeteer.httprequest.md) | | |
|
|
|
|
| requestfailed | | [HTTPRequest](./puppeteer.httprequest.md) | | |
|
|
|
|
| requestfinished | | [HTTPRequest](./puppeteer.httprequest.md) | | |
|
|
|
|
| requestservedfromcache | | [HTTPRequest](./puppeteer.httprequest.md) | | |
|
|
|
|
| response | | [HTTPResponse](./puppeteer.httpresponse.md) | | |
|
|
|
|
| workercreated | | [WebWorker](./puppeteer.webworker.md) | | |
|
|
|
|
| workerdestroyed | | [WebWorker](./puppeteer.webworker.md) | | |
|