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

Unified Diff: tools/perf/page_sets/login_helpers/google_login.py

Issue 2618333006: [tools/perf] Fix JavaScript interpolation in action_runner calls (Closed)
Patch Set: fix a few more interpolations Created 3 years, 11 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
Index: tools/perf/page_sets/login_helpers/google_login.py
diff --git a/tools/perf/page_sets/login_helpers/google_login.py b/tools/perf/page_sets/login_helpers/google_login.py
index 9c5a14e81779795991ca4c0d437368098f2479c3..a1108e4ce6185922faeaf1798672444c70c4fa03 100644
--- a/tools/perf/page_sets/login_helpers/google_login.py
+++ b/tools/perf/page_sets/login_helpers/google_login.py
@@ -43,9 +43,8 @@ def LoginGoogleAccount(action_runner,
'https%3A%2F%2Faccounts.google.com%2FManageAccount')
# Wait until either the email or password input is visible.
- # TODO(catapult:#3028): Fix interpolation of JavaScript values.
- action_runner.WaitForJavaScriptCondition('%s || %s' % (
- _EMAIL_INPUT_VISIBLE_CONDITION, _PASSWORD_INPUT_VISIBLE_CONDITION))
+ action_runner.WaitForJavaScriptCondition('{{ @a }} || {{ @b }}',
+ a=_EMAIL_INPUT_VISIBLE_CONDITION, b=_PASSWORD_INPUT_VISIBLE_CONDITION)
# If the email input is visible, this is the first Google login within the
# browser session, so we must enter both email and password. Otherwise, only
« no previous file with comments | « tools/perf/page_sets/login_helpers/dropbox_login.py ('k') | tools/perf/page_sets/login_helpers/login_utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698