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

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

Issue 1004843002: [chromedriver] Add Network Presets to Network Throttling feature (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 5 years, 9 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
« no previous file with comments | « chrome/test/chromedriver/chrome/network_list.cc ('k') | chrome/test/chromedriver/embed_networks_in_cpp.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 {
« no previous file with comments | « chrome/test/chromedriver/chrome/network_list.cc ('k') | chrome/test/chromedriver/embed_networks_in_cpp.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698