Bug 1316622 - Make implicit wait timeout default to 0; r=automatedtester
authorAndreas Tolfsen <ato@mozilla.com>
Thu, 10 Nov 2016 20:56:26 +0000
changeset 323980 b25048eb4ec1acd70d9ea7aa9d6ed9aed1649868
parent 323979 b77e4d6a360302a5f39b0dd6721a2ff91b3925d3
child 323981 57c2be9dcffcca905fab0510489f82d67da716e3
push id24
push usermaklebus@msu.edu
push dateTue, 20 Dec 2016 03:11:33 +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;