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