You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How to clear the cache, cookies and local storage in protractor. I already tried cleaning local and session storage, it's not working in my case. I want to execute the ctrl+shift+delete using the protractor script only.
#5369
Open
pareekniks opened this issue
Dec 4, 2019
· 3 comments
How to clear the cache, cookies and local storage in protractor. I already tried cleaning local and session storage, it's not working in my case. I want to execute the ctrl+shift+delete using the protractor script only.
Below code using in after each function but not achieved the required solution.
How to clear the cache, cookies and local storage in protractor. I already tried cleaning local and session storage, it's not working in my case. I want to execute the ctrl+shift+delete using the protractor script only.
Below code using in after each function but not achieved the required solution.
afterEach( async function () {
await browser.manage().deleteAllCookies();
await browser.executeScript("window.sessionStorage.clear()");
await browser.executeScript("window.localStorage.clear()");
await browser.actions().sendKeys(protractor.Key.CONTROL+protractor.Key.SHIFT+ protractor.Key.DELETE).perform();
Can anyone suggest some solution over this?
Any other solution, which clears the SSO login details.
The text was updated successfully, but these errors were encountered: