From edc2d31ab9066a78d5124e708953e505a530c2ab Mon Sep 17 00:00:00 2001 From: Denis Demchenko Date: Tue, 4 Aug 2015 21:54:44 +0300 Subject: [PATCH] Fix WebDriver.wait() example Signed-off-by: Daniel Davison --- javascript/webdriver/webdriver.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/webdriver/webdriver.js b/javascript/webdriver/webdriver.js index b3af240130241..fd78032ffac70 100644 --- a/javascript/webdriver/webdriver.js +++ b/javascript/webdriver/webdriver.js @@ -667,7 +667,7 @@ webdriver.WebDriver.prototype.call = function(fn, opt_scope, var_args) { * *Example:* waiting up to 10 seconds for an element to be present and visible * on the page. * - * var button = driver.wait(until.elementLocated(By.id('foo'), 10000); + * var button = driver.wait(until.elementLocated(By.id('foo')), 10000); * button.click(); * * This function may also be used to block the command flow on the resolution