Ends the session and closes down the test WebDriver server, if one is running. This is similar to calling the .end() command, but the former doesn't quit the WebDriver session.

This command will also execute the onBrowserQuit() global, if one is defined.

Usage

                    .quit([callback])
                

Example

this.demoTest = function (browser) {
  browser.quit(function(result) {
    console.log(result.value);
  });
}

Parameters

Name Type description
callback
Optional
function

Optional callback function to be called when the command finishes.