2022-07-05 13:41:43 +00:00
|
|
|
---
|
2023-09-13 13:47:55 +00:00
|
|
|
sidebar_label: PageEvents
|
2022-07-05 13:41:43 +00:00
|
|
|
---
|
|
|
|
|
2023-09-13 13:47:55 +00:00
|
|
|
# PageEvents interface
|
2022-07-05 13:41:43 +00:00
|
|
|
|
|
|
|
Denotes the objects received by callback functions for page events.
|
|
|
|
|
2023-09-13 13:47:55 +00:00
|
|
|
See [PageEvent](./puppeteer.pageevent.md) for more detail on the events and when they are emitted.
|
2022-07-05 13:41:43 +00:00
|
|
|
|
2022-10-24 07:07:05 +00:00
|
|
|
#### Signature:
|
2022-07-05 13:41:43 +00:00
|
|
|
|
|
|
|
```typescript
|
2023-09-13 13:47:55 +00:00
|
|
|
export interface PageEvents extends Record<EventType, unknown>
|
2022-07-05 13:41:43 +00:00
|
|
|
```
|
|
|
|
|
2023-11-13 12:27:17 +00:00
|
|
|
**Extends:** Record<[EventType](./puppeteer.eventtype.md), unknown>
|
2023-09-13 13:47:55 +00:00
|
|
|
|
2022-07-05 13:41:43 +00:00
|
|
|
## Properties
|
|
|
|
|
2023-03-28 18:02:00 +00:00
|
|
|
| Property | Modifiers | Type | Description | Default |
|
|
|
|
| ---------------------- | --------- | -------------------------------------------------------------- | ----------- | ------- |
|
2023-09-13 13:47:55 +00:00
|
|
|
| close | | undefined | | |
|
2023-03-28 18:02:00 +00:00
|
|
|
| console | | [ConsoleMessage](./puppeteer.consolemessage.md) | | |
|
|
|
|
| dialog | | [Dialog](./puppeteer.dialog.md) | | |
|
2023-09-13 13:47:55 +00:00
|
|
|
| domcontentloaded | | undefined | | |
|
2023-03-28 18:02:00 +00:00
|
|
|
| error | | Error | | |
|
|
|
|
| frameattached | | [Frame](./puppeteer.frame.md) | | |
|
|
|
|
| framedetached | | [Frame](./puppeteer.frame.md) | | |
|
|
|
|
| framenavigated | | [Frame](./puppeteer.frame.md) | | |
|
2023-09-13 13:47:55 +00:00
|
|
|
| load | | undefined | | |
|
2023-03-28 18:02:00 +00:00
|
|
|
| metrics | | { title: string; metrics: [Metrics](./puppeteer.metrics.md); } | | |
|
|
|
|
| pageerror | | Error | | |
|
2023-09-13 13:47:55 +00:00
|
|
|
| popup | | [Page](./puppeteer.page.md) \| null | | |
|
2023-03-28 18:02:00 +00:00
|
|
|
| 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) | | |
|