I am trying to remove an entry in the localStorage from a protractor test
describe(\'The feature\', function() {
beforeEach(function() {
browser.execu
Another potential solution is to put any state clearing in an afterEach, which will run after any test is run: (see https://github.com/angular/protractor/issues/188)
afterEach(function() {
browser.executeScript('window.sessionStorage.clear();');
browser.executeScript('window.localStorage.clear();');
});