Chromium Code Reviews| Index: components/test/data/password_manager/automated_tests/environment.py |
| diff --git a/components/test/data/password_manager/automated_tests/environment.py b/components/test/data/password_manager/automated_tests/environment.py |
| index a8b5f9d03321a2d998dac41c2d1366da7c0c2fee..99b6ec078c63ef25b243f6546999e4fe9fbcb7ca 100644 |
| --- a/components/test/data/password_manager/automated_tests/environment.py |
| +++ b/components/test/data/password_manager/automated_tests/environment.py |
| @@ -189,6 +189,22 @@ class Environment: |
| script += "document.querySelector('#clear-browser-data-commit').click();" |
| self.driver.execute_script(script) |
| time.sleep(2) |
| + # Every time we do something we cache let's enable password saving. |
|
vabr (Chromium)
2015/02/02 09:25:29
possible typo:
we cache -> to the cache
?
melandory
2015/02/02 09:35:53
Done.
|
| + # TODO(melandory): We should check why it's off on a first place. |
|
vabr (Chromium)
2015/02/02 09:25:29
nit: on the first place -> in the first place
Also
melandory
2015/02/02 09:35:53
Done.
|
| + # TODO(melandory): Investigate, maybe there is no need to enable it that |
| + # often |
|
vabr (Chromium)
2015/02/02 09:25:29
nit: Missing a full stop at the end of the sentenc
melandory
2015/02/02 09:35:53
Done.
|
| + self.EnablePasswordsSaving() |
| + |
| + def EnablePasswordsSaving(self): |
| + logging.info("\nEnablePasswordSaving\n") |
| + self.driver.get("chrome://settings") |
| + self.driver.switch_to_frame("settings") |
| + script = "document.getElementById('advanced-settings-expander').click();" |
| + script += ( |
| + "if (!document.querySelector('#password-manager-enabled').checked)" |
| + "{ document.querySelector('#password-manager-enabled').click();}") |
| + self.driver.execute_script(script) |
| + time.sleep(2) |
| def OpenTabAndGoToInternals(self, url): |
| """If there is no |self.website_window|, opens a new tab and navigates to |