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-09-19 13:03:19 +00:00
|
|
|
**Extends:** Record<EventType, unknown>
|
|
|
|
|
2023-03-29 11:22:11 +00:00
|
|
|
## Properties
|
|
|
|
|
|
|
|
| Property | Modifiers | Type | Description | Default |
|
|
|
|
| ---------------------- | --------- | -------------------------------------------------------------- | ----------- | ------- |
|
2023-09-19 13:03:19 +00:00
|
|
|
| close | | undefined | | |
|
2023-03-29 11:22:11 +00:00
|
|
|
| console | | [ConsoleMessage](./puppeteer.consolemessage.md) | | |
|
|
|
|
| dialog | | [Dialog](./puppeteer.dialog.md) | | |
|
2023-09-19 13:03:19 +00:00
|
|
|
| domcontentloaded | | undefined | | |
|
2023-03-29 11:22:11 +00:00
|
|
|
| error | | Error | | |
|
|
|
|
| frameattached | | [Frame](./puppeteer.frame.md) | | |
|
|
|
|
| framedetached | | [Frame](./puppeteer.frame.md) | | |
|
|
|
|
| framenavigated | | [Frame](./puppeteer.frame.md) | | |
|
2023-09-19 13:03:19 +00:00
|
|
|
| load | | undefined | | |
|
2023-03-29 11:22:11 +00:00
|
|
|
| metrics | | { title: string; metrics: [Metrics](./puppeteer.metrics.md); } | | |
|
|
|
|
| pageerror | | Error | | |
|
2023-09-19 13:03:19 +00:00
|
|
|
| popup | | [Page](./puppeteer.page.md) \| null | | |
|
2023-03-29 11:22:11 +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) | | |
|