Command to set Chrome network emulation settings.

Usage

.setNetworkConditions(spec, [callback])

Parameters

Name Type description
spec object
callback
Optional
function

Optional callback function to be called when the command finishes.

Example

 this.demoTest = function (browser) {
   browser.setNetworkConditions({
     offline: false,
     latency: 50000,
     download_throughput: 450  1024,
     upload_throughput: 150  1024
   });
 };