Index: chrome/test/chromedriver/client/chromedriver.py |
diff --git a/chrome/test/chromedriver/client/chromedriver.py b/chrome/test/chromedriver/client/chromedriver.py |
index 3700a73a06339f2d42f8505c0cd9cc5ea85bc455..0b5a6248093827a60309e5f2bca854bb1f7420fc 100644 |
--- a/chrome/test/chromedriver/client/chromedriver.py |
+++ b/chrome/test/chromedriver/client/chromedriver.py |
@@ -372,6 +372,10 @@ class ChromeDriver(object): |
} |
self.ExecuteCommand(Command.SET_NETWORK_CONDITIONS, params) |
+ def SetNetworkConditionsName(self, network_name): |
+ self.ExecuteCommand( |
+ Command.SET_NETWORK_CONDITIONS, {'network_name': network_name}) |
+ |
def GetNetworkConditions(self): |
conditions = self.ExecuteCommand(Command.GET_NETWORK_CONDITIONS) |
return { |