Delete all cookies visible to the current page.

Usage

                    .cookies.deleteAll([callback])
                

Example

module.exports = {
  'delete all cookies': function (browser) {
    browser
      .cookies.deleteAll(function() {
        console.log('all cookies deleted successfully');
      });
  },

  'delete all cookies with ES6 async/await': async function (browser) {
    await browser.cookies.deleteAll();
  }
};

Parameters

Name Type description
callback
Optional
function

Optional callback function to be called when the command finishes.

See also