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

51 lines
640 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
<table><thead><tr><th>
2022-07-05 13:41:43 +00:00
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
options
</td><td>
[WaitForNetworkIdleOptions](./puppeteer.waitfornetworkidleoptions.md)
</td><td>
_(Optional)_ Options to configure waiting behavior.
</td></tr>
</tbody></table>
2022-07-05 13:41:43 +00:00
**Returns:**
Promise&lt;void&gt;
A promise which resolves once the network is idle.