.pause() Suggest edits
Suspends the test for the given time in milliseconds. If the milliseconds argument is missing it will suspend the test indefinitely
Parameters
Name | Type | description |
---|---|---|
ms |
number | The number of milliseconds to wait. |
callback Optional |
function | Optional callback function to be called when the command finishes. |
Usage
this.demoTest = function (browser) {
browser.pause(1000);
// or suspend indefinitely
browser.pause();
};