Skip to content

Commit

Permalink
Fix wait error messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
jleyba committed Oct 16, 2014
1 parent 70eba09 commit 409512d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion javascript/webdriver/until.js
Expand Up @@ -64,7 +64,7 @@ var until = webdriver.until;
*/
until.Condition = function(message, fn) {
/** @private {string} */
this.description_ = message;
this.description_ = 'Waiting ' + message;

/** @type {function(!webdriver.WebDriver): OUT} */
this.fn = fn;
Expand Down
2 changes: 1 addition & 1 deletion javascript/webdriver/webdriver.js
Expand Up @@ -648,7 +648,7 @@ webdriver.WebDriver.prototype.wait = function(
return webdriver.promise.consume(fn, null, [driver]);
}
return fn(driver);
}, timeout, opt_message);
}, timeout, message);
};


Expand Down

0 comments on commit 409512d

Please sign in to comment.