Back to Puppeteer

NetworkConditions interface

website/versioned_docs/version-24.40.0/api/puppeteer.networkconditions.md

19.2.2900 B
Original Source

NetworkConditions interface

Signature

typescript
export interface NetworkConditions

Properties

<table><thead><tr><th>

Property

</th><th>

Modifiers

</th><th>

Type

</th><th>

Description

</th><th>

Default

</th></tr></thead> <tbody><tr><td>

<span id="download">download</span>

</td><td> </td><td>

number

</td><td>

Download speed (bytes/s)

</td><td> </td></tr> <tr><td>

<span id="latency">latency</span>

</td><td> </td><td>

number

</td><td>

Latency (ms)

</td><td> </td></tr> <tr><td>

<span id="offline">offline</span>

</td><td>

optional

</td><td>

boolean

</td><td>

Emulates the offline mode.

Remarks:

Shortcut for Page.setOfflineMode().

</td><td> </td></tr> <tr><td>

<span id="upload">upload</span>

</td><td> </td><td>

number

</td><td>

Upload speed (bytes/s)

</td><td> </td></tr> </tbody></table>