title: Make protractor test occupy the entire screen
body: <p>I have seen a couple questions online related to this issue (<a href="https://stackoverflow.com/questions/20023567/how-to-set-default-browser-window-size-in-protractor-webdriverjs">How to set default browser window size in Protractor/WebdriverJS</a>) but they don't address my issue.</p>
  
  <p>I have the tests that I want to be able to run successfully on a laptop screen or desktop screen of ant size. I had tried all of these methods below but unsuccesfully.</p>
  
  <p>The issue with this one is that I have to hardcode a width and height. I want to detect the screen size automatically</p>
  
  <pre><code>browser.driver.manage().window().setSize(width, height);
  </code></pre>
  
  <p>The issue with this one is that it only seems to maximize the height and not the width.</p>
  
  <pre><code>browser.driver.manage().window().maximize();
  </code></pre>
  
  <p>I want to be able to get the screen's height and width and plug those in for the .setSize() function. But when I try this</p>
  
  <pre><code>browser.driver.manage().window().setSize(screen.width, screen.height);
  </code></pre>
  
  <p>I get <code>ReferenceError: screen is not defined</code></p>
  
  <p>If I try <code>console.log($(window));</code> then window is not defined either</p>
  
  <p>So what the best way to do this?</p>