I\'m using Protractor (with Jasmine) to test my AngulaJs application.
As result of some of my action I get some data saved in the localStorage. Now I need to test ot
If there's still a problem with the localStorage when executing a "removeItem()", you can use a try-catch, like:
browser.executeScript("try {localStorage.removeItem('access_token');} catch(exception) {}");