Throttle the network capabilities of the browser. This can help to emulate certain scenarios where a user loses their internet connection and your app needs to address that.
There are many presets available with default configurations for ease of use.
You can see the values for these presets in the source code.
Note that using the
throttle command requires support for Chrome DevTools protocol and e.g.
can not be used when running automated tests in the cloud. Find out more in the
Automation Protocols section.
|params||parameters for throttling|
|params.offline||True to emulate internet disconnection.|
|params.latency||Minimum latency from request sent to response headers received (ms).|
|params.downloadThroughput||Maximal aggregated download throughput (bytes/sec). -1 disables download throttling.|
|params.uploadThroughput||Maximal aggregated upload throughput (bytes/sec). -1 disables upload throttling.|