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

Unified Diff: chrome/test/pyautolib/pyauto.py

Issue 8890026: Allow chromedriver to set local state preferences. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ... Created 9 years 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/pyautolib/chrome_driver_factory.py ('k') | chrome/test/webdriver/commands/create_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/pyautolib/pyauto.py
diff --git a/chrome/test/pyautolib/pyauto.py b/chrome/test/pyautolib/pyauto.py
index fd55034818bcaba57b30a6d745f2a95ae5f184a5..8523e1691c29288d752b61259fb46ca950aed07c 100755
--- a/chrome/test/pyautolib/pyauto.py
+++ b/chrome/test/pyautolib/pyauto.py
@@ -1171,10 +1171,11 @@ class PyUITest(pyautolib.PyUITestBase, unittest.TestCase):
"""
cmd_dict = {
'command': 'SetLocalStatePrefs',
+ 'windex': 0,
'path': path,
'value': value,
}
- self._GetResultFromJSONRequest(cmd_dict)
+ self._GetResultFromJSONRequest(cmd_dict, windex=-1)
def GetPrefsInfo(self):
"""Return info about preferences.
@@ -1186,8 +1187,12 @@ class PyUITest(pyautolib.PyUITestBase, unittest.TestCase):
Returns:
an instance of prefs_info.PrefsInfo
"""
+ cmd_dict = {
+ 'command': 'GetPrefsInfo',
+ 'windex': 0,
+ }
return prefs_info.PrefsInfo(
- self._SendJSONRequest(0, json.dumps({'command': 'GetPrefsInfo'}),
+ self._SendJSONRequest(-1, json.dumps(cmd_dict),
self.action_max_timeout_ms()))
def SetPrefs(self, path, value):
@@ -1214,10 +1219,11 @@ class PyUITest(pyautolib.PyUITestBase, unittest.TestCase):
"""
cmd_dict = {
'command': 'SetPrefs',
+ 'windex': 0,
'path': path,
'value': value,
}
- self._GetResultFromJSONRequest(cmd_dict)
+ self._GetResultFromJSONRequest(cmd_dict, windex=-1)
def SendWebkitKeyEvent(self, key_type, key_code, tab_index=0, windex=0):
"""Send a webkit key event to the browser.
« no previous file with comments | « chrome/test/pyautolib/chrome_driver_factory.py ('k') | chrome/test/webdriver/commands/create_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698