@@ -92,6 +92,7 @@ const Command = {
9292 LAUNCH_APP : 'launchApp' ,
9393 GET_NETWORK_CONDITIONS : 'getNetworkConditions' ,
9494 SET_NETWORK_CONDITIONS : 'setNetworkConditions' ,
95+ DELETE_NETWORK_CONDITIONS : 'deleteNetworkConditions' ,
9596 SEND_DEVTOOLS_COMMAND : 'sendDevToolsCommand' ,
9697 SEND_AND_GET_DEVTOOLS_COMMAND : 'sendAndGetDevToolsCommand' ,
9798 SET_PERMISSION : 'setPermission' ,
@@ -137,6 +138,11 @@ function configureExecutor(executor, vendorPrefix) {
137138 'POST' ,
138139 '/session/:sessionId/chromium/network_conditions'
139140 )
141+ executor . defineCommand (
142+ Command . DELETE_NETWORK_CONDITIONS ,
143+ 'DELETE' ,
144+ '/session/:sessionId/chromium/network_conditions'
145+ )
140146 executor . defineCommand (
141147 Command . SEND_DEVTOOLS_COMMAND ,
142148 'POST' ,
@@ -706,6 +712,15 @@ class Driver extends webdriver.WebDriver {
706712 return this . execute ( new command . Command ( Command . GET_NETWORK_CONDITIONS ) )
707713 }
708714
715+ /**
716+ * Schedules a command to delete Chromium network emulation settings.
717+ * @return {!Promise } A promise that will be resolved when network
718+ * emulation settings have been deleted.
719+ */
720+ deleteNetworkConditions ( ) {
721+ return this . execute ( new command . Command ( Command . DELETE_NETWORK_CONDITIONS ) )
722+ }
723+
709724 /**
710725 * Schedules a command to set Chromium network emulation settings.
711726 *
0 commit comments