title: Protractor: How to test window.print()
body: <p>I'm trying to test print functionality of a button, like:</p>
  
  <pre><code>it('print document', function(){
      element(by.id('print-button')).click();
      expect(window.print());
  });
  </code></pre>
  
  <p>I want to test browser print dialog box. How to do this?</p>