2022-07-05 13:41:43 +00:00
|
|
|
---
|
|
|
|
sidebar_label: Page.waitForNetworkIdle
|
|
|
|
---
|
|
|
|
|
|
|
|
# Page.waitForNetworkIdle() method
|
|
|
|
|
2022-10-24 07:07:05 +00:00
|
|
|
#### Signature:
|
2022-07-05 13:41:43 +00:00
|
|
|
|
|
|
|
```typescript
|
|
|
|
class Page {
|
|
|
|
waitForNetworkIdle(options?: {
|
|
|
|
idleTime?: number;
|
|
|
|
timeout?: number;
|
|
|
|
}): Promise<void>;
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --------- | ---------------------------------------- | --------------------------------------------- |
|
|
|
|
| options | { idleTime?: number; timeout?: number; } | <i>(Optional)</i> Optional waiting parameters |
|
|
|
|
|
|
|
|
**Returns:**
|
|
|
|
|
|
|
|
Promise<void>
|
|
|
|
|
|
|
|
Promise which resolves when network is idle
|