Bug 1316622 - Make implicit wait timeout default to 0; r?automatedtester draft
authorAndreas Tolfsen <ato@mozilla.com>
Thu, 10 Nov 2016 20:56:26 +0000
changeset 442869 eb1958b15d6225a41347aaec5441fba909a319e0
parent 442868 cfb49f90871b751b5e268bd13269e9ba1bb2268b
child 442870 83746c58a151cc2dec4cb47406024b2a107c4005
push id36854
push userbmo:ato@mozilla.com
push dateWed, 23 Nov 2016 13:38:54 +0000
reviewersautomatedtester
bugs1316622
milestone53.0a1
Bug 1316622 - Make implicit wait timeout default to 0; r?automatedtester The WebDriver specification mandates that the implicit wait timeout should default to 0 (off), which in Marionette has the same effect as null. MozReview-Commit-ID: Ca3RxO7gHv8
testing/marionette/driver.js
--- a/testing/marionette/driver.js
+++ b/testing/marionette/driver.js
@@ -105,17 +105,17 @@ this.GeckoDriver = function(appName, ser
 
   this.sessionId = null;
   this.wins = new browser.Windows();
   this.browsers = {};
   // points to current browser
   this.curBrowser = null;
   this.context = Context.CONTENT;
   this.scriptTimeout = 30000;  // 30 seconds
-  this.searchTimeout = null;
+  this.searchTimeout = 0;
   this.pageTimeout = 300000;  // five minutes
   this.timer = null;
   this.inactivityTimer = null;
   this.marionetteLog = new logging.ContentLogger();
   // topmost chrome frame
   this.mainFrame = null;
   // chrome iframe that currently has focus
   this.curFrame = null;