Delete all cookies visible to the current page.

Syntax

.deleteCookies([callback])

Parameters

Name Type description
callback
Optional
function

Optional callback function to be called when the command finishes.

Usage

this.demoTest = function(browser) {
  browser.deleteCookies(function() {
    // do something more in here
  });
}

See also