Puppeteer 中文文档v25.8.0

NetworkConditions 接口

签名

export interface NetworkConditions

属性

属性

修饰符

类型

说明

默认值

download

number

下载速度(字节/秒)

latency

number

延迟(毫秒)

offline

optional

boolean

模拟离线模式。

备注:

Page.setOfflineMode() 的快捷方式。

upload

number

上传速度(字节/秒)