Page.waitForNetworkIdle() 方法
¥Page.waitForNetworkIdle() method
等待网络空闲。
¥Waits for the network to be idle.
签名
¥Signature
class Page {
waitForNetworkIdle(options?: WaitForNetworkIdleOptions): Promise<void>;
}
参数
¥Parameters
范围 | 类型 | 描述 |
---|---|---|
options | (可选的)配置等待行为的选项。 |
Returns:
Promise<void>
一旦网络空闲就会解决的 promise。
¥A promise which resolves once the network is idle.