puppeteer/docs/api/puppeteer.puppeteerlifecycleevent.md

30 lines
530 B
Markdown
Raw Normal View History

2022-07-05 13:41:43 +00:00
---
sidebar_label: PuppeteerLifeCycleEvent
---
# PuppeteerLifeCycleEvent type
#### Signature:
2022-07-05 13:41:43 +00:00
```typescript
export type PuppeteerLifeCycleEvent =
/**
* Waits for the 'load' event.
*/
2022-07-05 13:41:43 +00:00
| 'load'
/**
* Waits for the 'DOMContentLoaded' event.
*/
2022-07-05 13:41:43 +00:00
| 'domcontentloaded'
/**
* Waits till there are no more than 0 network connections for at least `500`
* ms.
*/
2022-07-05 13:41:43 +00:00
| 'networkidle0'
/**
* Waits till there are no more than 2 network connections for at least `500`
* ms.
*/
2022-07-05 13:41:43 +00:00
| 'networkidle2';
```