title: Browser Back Button using protractor or javascript
body: <p>I am writing an automated test for the browser back button on logout of an angular application using a combination of protractor and cucumberjs.</p>
  
  <p>When trying to use the command <code>history.back()</code> I get the following error:</p>
  
  <pre><code> ReferenceError: history is not defined
          at World.&lt;anonymous&gt; (/Users/&amp;&amp;&amp;&amp;&amp;/&amp;&amp;&amp;&amp;&amp;/features/step_definitions/browsers.js:62:16)
  </code></pre>
  
  <p>This points to where I'm calling the history.back(); function. </p>
  
  <p>How do I fix this, or correctly implement a browser back function using cucumber js?</p>