Set the amount of time the driver should wait when searching for elements. If this command is never sent, the driver will default to an implicit wait of 0ms.

Usage

.timeoutsImplicitWait(ms, [callback])

Parameters

Name Type description
ms number

The amount of time, in milliseconds, that time-limited commands are permitted to run.

callback
Optional
function

Optional callback function to be called when the command finishes.

Example

 this.demoTest = function (browser) {
   browser.timeoutsImplicitWait(10000, function(result) {
     console.log(result);
   });
}