Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5040)

Unified Diff: chrome/test/chromedriver/client/chromedriver.py

Issue 2065733002: Add a method to override the network conditions of the ChromeDriver session. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changed hard coded network values to constants. Fixed style issues. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/test/chromedriver/client/chromedriver.py
diff --git a/chrome/test/chromedriver/client/chromedriver.py b/chrome/test/chromedriver/client/chromedriver.py
index 4e16f0f9d9ea9c6fad9512d77cc8fe143a1547ab..ffa78fa5cf610bf9655eb31cadd4f78dcd2bfe45 100644
--- a/chrome/test/chromedriver/client/chromedriver.py
+++ b/chrome/test/chromedriver/client/chromedriver.py
@@ -409,3 +409,7 @@ class ChromeDriver(object):
def DeleteNetworkConditions(self):
self.ExecuteCommand(Command.DELETE_NETWORK_CONDITIONS)
+
+ def SetNetworkConnection(self, connection_type):
prasadv 2016/06/20 20:29:09 Question: What is the difference between SetNetwor
samuong 2016/06/20 21:43:23 These are different APIs to the same functionality
+ params = {'parameters': {'type': connection_type}}
+ self.ExecuteCommand(Command.SET_NETWORK_CONNECTION, params)
« no previous file with comments | « no previous file | chrome/test/chromedriver/client/command_executor.py » ('j') | chrome/test/chromedriver/session_commands.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698