title: Cannot Resize Headless Chrome
body: <p>All of my tests are failing due to chrome opening up at a size of 800x600. I've looked at several sites for a solution, but nothing I've tried seems to be working.  </p>
  
  <pre><code>ChromeOptions options = new ChromeOptions();
  options.addArguments("--headless");
  options.addArguments("--disable-gpu");
  options.addArguments("--window-size=1920,1080");
  DesiredCapabilities cap = DesiredCapabilities.chrome();     
  DesiredCapabilities capabilities = DesiredCapabilities.chrome();
  cap.setCapability(ChromeOptions.CAPABILITY, options);
  capabilities.setBrowserName("chrome");
  capabilities.setPlatform(Platform.WINDOWS);
  driver = new RemoteWebDriver(new URL("http://localhost:4444/wd/hub"), cap);
  </code></pre>