* Schedules a command to set Chromium network emulation settings. * * __Sample Usage:__ * * driver.setNetworkConditions({ * offline: false, * latency: 5, // Additional latency (ms). * download_throughput: 500 * 1024, // Maximal aggregated download throughput. * u
(spec)
| 706 | * emulation settings are set. |
| 707 | */ |
| 708 | setNetworkConditions(spec) { |
| 709 | if (!spec || typeof spec !== 'object') { |
| 710 | throw TypeError('setNetworkConditions called with non-network-conditions parameter') |
| 711 | } |
| 712 | return this.execute(new command.Command(Command.SET_NETWORK_CONDITIONS).setParameter('network_conditions', spec)) |
| 713 | } |
| 714 | |
| 715 | /** |
| 716 | * Sends an arbitrary devtools command to the browser. |
nothing calls this directly
no test coverage detected