puppeteer/docs/api/puppeteer.page.waitfornetworkidle.md

28 lines
766 B
Markdown
Raw Normal View History

2022-07-05 13:41:43 +00:00
---
sidebar_label: Page.waitForNetworkIdle
---
# Page.waitForNetworkIdle() method
Waits for the network to be idle.
#### Signature:
2022-07-05 13:41:43 +00:00
```typescript
class Page {
waitForNetworkIdle(options?: WaitForNetworkIdleOptions): Promise<void>;
2022-07-05 13:41:43 +00:00
}
```
## Parameters
| Parameter | Type | Description |
| --------- | --------------------------------------------------------------------- | --------------------------------------------------- |
| options | [WaitForNetworkIdleOptions](./puppeteer.waitfornetworkidleoptions.md) | _(Optional)_ Options to configure waiting behavior. |
2022-07-05 13:41:43 +00:00
**Returns:**
Promise&lt;void&gt;
A promise which resolves once the network is idle.