.network.setConditions() Suggest edits
Command to set Chrome network emulation settings.
Usage
.setNetworkConditions(spec, [callback])
.network.setConditions(spec, [callback])
Example
describe('set network conditions', function() {
it('sets the network conditions',function() {
browser
.network.setConditions({
offline: false,
latency: 3000,
download_throughput: 500 * 1024,
upload_throughput: 500 * 1024
});
});
});
Parameters
Name | Type | description |
---|---|---|
spec |
object | |
callback Optional |
function | Optional callback function to be called when the command finishes. |