vendredi 29 mai 2020

Can't delete all browsing data using chromedriver

I have to delete all browsing data to achieve a log out from page.

I've tried:

getDriver().manage().deleteAllCookies();

no result.

What worked (but i don't want to use it, cause i don't like this way) is:

getDriver().get("chrome://settings/clearBrowserData");
getDriver().findElement(By.xpath("//settings-ui")).sendKeys(Keys.ENTER);

Is there a way to achieve same behavior but by managing chromedriver?

chrome version: 83.0.4103.61

Aucun commentaire:

Enregistrer un commentaire