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

Unified Diff: telemetry/telemetry/internal/backends/chrome/oobe.py

Issue 2803043002: Fix flaky NPE in oobe.js. (Closed)
Patch Set: Created 3 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: telemetry/telemetry/internal/backends/chrome/oobe.py
diff --git a/telemetry/telemetry/internal/backends/chrome/oobe.py b/telemetry/telemetry/internal/backends/chrome/oobe.py
index fff4278ca022f3d10ab912f9bbe33f9b21c90eae..a39b6472bcd3bbee1679086f96ef6038856db5c7 100644
--- a/telemetry/telemetry/internal/backends/chrome/oobe.py
+++ b/telemetry/telemetry/internal/backends/chrome/oobe.py
@@ -37,7 +37,8 @@ class Oobe(web_contents.WebContents):
def _ExecuteOobeApi(self, api, *args):
logging.info('Invoking %s' % api)
- self.WaitForJavaScriptCondition("typeof Oobe == 'function'", timeout=120)
+ self.WaitForJavaScriptCondition(
+ "typeof Oobe == 'function' && Oobe.readyForTesting", timeout=120)
if self.EvaluateJavaScript(
"typeof {{ @api }} == 'undefined'", api=api):
« 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