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

Unified Diff: components/test/data/password_manager/automated_tests/environment.py

Issue 1043453002: [Password Manager Automated tests] Fix enabling the password manager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ef43c998deec20c5aaa839d198d038b7eca04cb6..ecd1e73143301550e95c886943510d80527d466e 100644
--- a/components/test/data/password_manager/automated_tests/environment.py
+++ b/components/test/data/password_manager/automated_tests/environment.py
@@ -168,7 +168,9 @@ class Environment:
# TODO(vabr): Wait until element is displayed instead.
time.sleep(2)
script = (
- "document.querySelector('#password-manager-enabled').checked = true;")
+ "if (!document.querySelector('#password-manager-enabled').checked) {"
+ " document.querySelector('#password-manager-enabled').click();"
+ "}")
self.driver.execute_script(script)
time.sleep(2)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698