title: Accessing localStorage in Protractor test for AngularJS application
body: <p>I am writing some tests to verify that input data is being stored in local storage correctly, how can I access localStorage from within the protractor test?</p>
  
  <pre><code>...
  describe('vgPersist', function() {
    it('Should save input data in local storage until form submitted', function() {
      // Prepare Object and Open browser
      var addOns = new AddOns();
      addOns.get();
  
      -&gt; Clear localStorage
      -&gt; Get from localStorage
  </code></pre>
  
  <p>How do you use executeScript? And could I get data from an executeScript?</p>