Index: tools/perf/page_sets/system_health/browsing_stories.py |
diff --git a/tools/perf/page_sets/system_health/browsing_stories.py b/tools/perf/page_sets/system_health/browsing_stories.py |
index fcc725a2fb9d21baef9dd083ed58641e421fdfec..3470aba9514cf7d136c62977abe2e59b5c01235b 100644 |
--- a/tools/perf/page_sets/system_health/browsing_stories.py |
+++ b/tools/perf/page_sets/system_health/browsing_stories.py |
@@ -222,9 +222,9 @@ class WashingtonPostMobileStory(_NewsBrowsingStory): |
# window does not have a "Close" button, instead it has only a "Send link |
# to phone" button. So on tablets we run with the popup window open. The |
# popup is transparent, so this is mostly an aesthetical issue. |
- # TODO(catapult:#3028): Fix interpolation of JavaScript values. |
has_button = action_runner.EvaluateJavaScript( |
- '!!document.querySelector("%s")' % self._CLOSE_BUTTON_SELECTOR) |
+ '!!document.querySelector({{ selector }})', |
+ selector=self._CLOSE_BUTTON_SELECTOR) |
if has_button: |
action_runner.ClickElement(selector=self._CLOSE_BUTTON_SELECTOR) |
super(WashingtonPostMobileStory, self)._DidLoadDocument(action_runner) |