title: How do I resize an open window in WebdriverIO?
body: <p>I am using WebdriverIO for automation and am required to resize an open window to check the display of various UI elements compared to a maximized display.</p>
  
  <p>I've tried each of the following separately with no success:</p>
  
  <pre><code>browser.setViewportSize({width:1200,height:662})
  browser.windowHandleSize(1200, 662);
  </code></pre>
  
  <p>I also have checks to make sure the window has been properly resized:</p>
  
  <pre><code>expect(browser.getViewportSize('width')).to.be.lessThan(1300);
  expect(browser.getViewportSize('width')).to.be.greaterThan(1000);
  </code></pre>
  
  <p>Unfortunately, nothing happens visually and the expects fail, as expected. I'm not sure if I'm not understanding how to use setViewportSize or windowHandleSize properly (maybe they're only intended to be used to resize new windows rather than existing ones?), or if this functionality exists in WebdriverIO at all.</p>