title: Listen for Browser Events in Protractor
body: <p>Is there a way to attach event listeners to browser events in a Protractor test?</p>
  
  <p>I know Protractor is running as a Node program, but I'm curious if anyone has done this with a Node package like <a href="https://www.npmjs.org/package/browserevent">browserevent</a>.</p>
  
  <p>Looking for any examples if so.</p>