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

Unified Diff: tools/perf/page_sets/pica.json

Issue 22883011: Removing Page.WaitToLoad and update all pagesets to use explicit wait actions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 4 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/pica.json
diff --git a/tools/perf/page_sets/pica.json b/tools/perf/page_sets/pica.json
index 2315276805a04eec9bd2cfceaf074c15fea65701..58ead5414155f1c227628fb3737cee5a190faa5b 100644
--- a/tools/perf/page_sets/pica.json
+++ b/tools/perf/page_sets/pica.json
@@ -5,7 +5,10 @@
{ "url": "http://www.polymer-project.org/polymer-all/projects/pica/index.html",
"script_to_evaluate_on_commit":
"document.addEventListener('WebComponentsReady', function(){var unused = document.body.offsetHeight; window.__pica_load_time = performance.now(); setTimeout(function(){window.__web_components_ready=true}, 1000)})",
- "wait_for_javascript_expression": "window.__web_components_ready",
+ "navigate_steps" : [
+ { "action": "navigate" },
+ { "action": "wait", "condition": "javascript", "javascript": "window.__web_components_ready"}
+ ],
"smoothness": {
"action": "tap_element",
"find_element_expression": "document.querySelector('pi-app').$.Topics.$.topics.$.container.querySelector('.item > .card')",

Powered by Google App Engine
This is Rietveld 408576698