mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
28 lines
766 B
Markdown
28 lines
766 B
Markdown
---
|
|
sidebar_label: Page.waitForNetworkIdle
|
|
---
|
|
|
|
# Page.waitForNetworkIdle() method
|
|
|
|
Waits for the network to be idle.
|
|
|
|
#### Signature:
|
|
|
|
```typescript
|
|
class Page {
|
|
waitForNetworkIdle(options?: WaitForNetworkIdleOptions): Promise<void>;
|
|
}
|
|
```
|
|
|
|
## Parameters
|
|
|
|
| Parameter | Type | Description |
|
|
| --------- | --------------------------------------------------------------------- | --------------------------------------------------- |
|
|
| options | [WaitForNetworkIdleOptions](./puppeteer.waitfornetworkidleoptions.md) | _(Optional)_ Options to configure waiting behavior. |
|
|
|
|
**Returns:**
|
|
|
|
Promise<void>
|
|
|
|
A promise which resolves once the network is idle.
|