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

Unified Diff: tools/telemetry/telemetry/page/record_wpr.py

Issue 13991015: [Telemetry] Wait for pages to load completely during record_wpr. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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: tools/telemetry/telemetry/page/record_wpr.py
diff --git a/tools/telemetry/telemetry/page/record_wpr.py b/tools/telemetry/telemetry/page/record_wpr.py
index c3e615ea8957f3a5df7e777380a4852ced1966ec..b315401aebcdae18742d662b5b690da23b650377 100755
--- a/tools/telemetry/telemetry/page/record_wpr.py
+++ b/tools/telemetry/telemetry/page/record_wpr.py
@@ -37,6 +37,7 @@ class RecordPage(page_test.PageTest):
def Run(self, options, page, tab, results):
# When recording, sleep to catch any resources that load post-onload.
+ tab.WaitForDocumentReadyStateToBeComplete()
time.sleep(3)
# Run the actions for all benchmarks. Reload the page between
« 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