Suspends the test for the given time in milliseconds. If the milliseconds argument is missing it will suspend the test indefinitely

Usage:

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.

Example:

this.demoTest = function (browser) {
  browser.pause(1000);
  // or suspend indefinitely
  browser.pause();
};