puppeteer/docs/api/puppeteer.pageevents.md

42 lines
3.0 KiB
Markdown
Raw Normal View History

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
#### 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
```
**Extends:** Record&lt;[EventType](./puppeteer.eventtype.md), unknown&gt;
2023-09-13 13:47:55 +00:00
2022-07-05 13:41:43 +00:00
## Properties
| Property | Modifiers | Type | Description | Default |
| ---------------------- | --------- | -------------------------------------------------------------- | ----------- | ------- |
2023-09-13 13:47:55 +00:00
| close | | undefined | | |
| console | | [ConsoleMessage](./puppeteer.consolemessage.md) | | |
| dialog | | [Dialog](./puppeteer.dialog.md) | | |
2023-09-13 13:47:55 +00:00
| domcontentloaded | | undefined | | |
| 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 | | |
| metrics | | { title: string; metrics: [Metrics](./puppeteer.metrics.md); } | | |
| pageerror | | Error | | |
2023-09-13 13:47:55 +00:00
| 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) | | |