Browser Profile clear - Yash-777/SeleniumDriverAutomation GitHub Wiki
Web-Storage
localStorage.setItem('key1', 'local');
console.log( localStorage.getItem('key1') );
sessionStorage.setItem('key1', 'session');
console.log( sessionStorage.getItem('key1') );
window.localStorage.clear();
window.sessionStorage.clear();
driver.getSessionStorage().clear();
driver.getLocalStorage().clear();
Web-Cookies
driver.manage().getCookies(); // Return The List of all Cookies
driver.manage().getCookieNamed(arg0); //Return specific cookie according to name
driver.manage().addCookie(arg0); //Create and add the cookie
driver.manage().deleteCookie(arg0); // Delete specific cookie
driver.manage().deleteCookieNamed(arg0); // Delete specific cookie according Name
driver.manage().deleteAllCookies(); // Delete all cookies
http form/session data