Index: chrome/test/pyautolib/pyauto.py |
diff --git a/chrome/test/pyautolib/pyauto.py b/chrome/test/pyautolib/pyauto.py |
index f57462dbfdf690382a14588b8e86afe1c1240346..ecc3486e04dbf74cbc297d589bdf615f9c028d24 100644 |
--- a/chrome/test/pyautolib/pyauto.py |
+++ b/chrome/test/pyautolib/pyauto.py |
@@ -1796,7 +1796,7 @@ class PyUITest(pyautolib.PyUITestBase, unittest.TestCase): |
} |
return self._GetResultFromJSONRequest(cmd_dict) |
- def AddSavedPassword(self, password_dict, window_index=0): |
+ def AddSavedPassword(self, password_dict, windex=0): |
"""Adds the given username-password combination to the saved passwords. |
Args: |
@@ -1811,7 +1811,7 @@ class PyUITest(pyautolib.PyUITestBase, unittest.TestCase): |
'submit_element': 'submit', # The HTML element |
'action_target': 'https://www.example.com/login/', |
'blacklist': False } |
- window_index: window index, defaults to 0 |
+ windex: window index; defaults to 0 (first window). |
*Blacklist notes* To blacklist a site, add a blacklist password with the |
following dictionary items: origin_url, signon_realm, username_element, |
@@ -1823,14 +1823,14 @@ class PyUITest(pyautolib.PyUITestBase, unittest.TestCase): |
mode, adding the password should fail. |
Raises: |
- JSONInterfaceError on error. |
+ pyauto_errors.JSONInterfaceError if the automation call returns an error. |
""" |
cmd_dict = { # Prepare command for the json interface |
'command': 'AddSavedPassword', |
'password': password_dict |
} |
return self._GetResultFromJSONRequest( |
- cmd_dict, windex=window_index)['password_added'] |
+ cmd_dict, windex=windex)['password_added'] |
def RemoveSavedPassword(self, password_dict, window_index=0): |
"""Removes the password matching the provided password dictionary. |