summaryrefslogtreecommitdiffstats
path: root/components/test
diff options
context:
space:
mode:
authormelandory <melandory@chromium.org>2015-05-19 00:55:49 -0700
committerCommit bot <commit-bot@chromium.org>2015-05-19 07:56:05 +0000
commita57762c31ca0760329bbe006115fa5ef3a639e68 (patch)
tree7f5ce3f28888bf59c5ab5bad63010c6ce95062ae /components/test
parentccd065321b95c47e03d267a142778c5cbd14c636 (diff)
downloadchromium_src-a57762c31ca0760329bbe006115fa5ef3a639e68.zip
chromium_src-a57762c31ca0760329bbe006115fa5ef3a639e68.tar.gz
chromium_src-a57762c31ca0760329bbe006115fa5ef3a639e68.tar.bz2
[Password manager tests automation] Fix "No such frame" error.
In some cases selenium are unable to select frame, which give an exception and prevents test running. Fix this by explicitly navigating to desired frame. BUG=369521 R=vabr@chromium.org Review URL: https://codereview.chromium.org/1147483003 Cr-Commit-Position: refs/heads/master@{#330491}
Diffstat (limited to 'components/test')
-rw-r--r--components/test/data/password_manager/automated_tests/environment.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/components/test/data/password_manager/automated_tests/environment.py b/components/test/data/password_manager/automated_tests/environment.py
index 3743465..47de309 100644
--- a/components/test/data/password_manager/automated_tests/environment.py
+++ b/components/test/data/password_manager/automated_tests/environment.py
@@ -113,8 +113,7 @@ class Environment:
time".
"""
- self.driver.get("chrome://settings/clearBrowserData")
- self.driver.switch_to_frame("settings")
+ self.driver.get("chrome://settings-frame/clearBrowserData")
time_range_selector = "#clear-browser-data-time-period"
# TODO(vabr): Wait until time_range_selector is displayed instead.
@@ -161,8 +160,7 @@ class Environment:
# TODO(melandory): We should check why it's off in a first place.
# TODO(melandory): Investigate, maybe there is no need to enable it that
# often.
- self.driver.get("chrome://settings")
- self.driver.switch_to_frame("settings")
+ self.driver.get("chrome://settings-frame")
script = "document.getElementById('advanced-settings-expander').click();"
self.driver.execute_script(script)
# TODO(vabr): Wait until element is displayed instead.