Protractor - how to call WebDriver methods?

I am trying to use the deleteAllCookies () function from WebDriver from the Protractor test spec.

I tried:

browser.driver.deleteAllCookies(); // undefined error browser.driver.options.deleteAllCookies(); // undefined error browser.manage().deleteAllCookies(); // doesn't seem to be deleting cookies 

How to call / use this feature?

+8
angularjs selenium protractor
source share
2 answers

This works for me with protractor 1.5.0, selenium-webdriver: "2.44.0" browser.driver.manage().deleteAllCookies();

+5
source share

In the transporter, the way to delete all your cookies is:

 ptor.manage().deleteAllCookies(); 
+4
source share

All Articles