title: Headless Chrome run with selenium
body: <pre><code>        System.setProperty("webdriver.chrome.driver", "/usr/bin/google-chrome");
  
          final ChromeOptions chromeOptions = new ChromeOptions();
          //chromeOptions.addArguments("headless");
          chromeOptions.addArguments("window-size=1200x600");
  
          final DesiredCapabilities desiredCapabilities = new DesiredCapabilities();
          desiredCapabilities.setCapability(ChromeOptions.CAPABILITY, chromeOptions);
  
  
          final URL url = new URL("https://the-internet.herokuapp.com/login");
          final WebDriver driver = new RemoteWebDriver(url, desiredCapabilities);
  </code></pre>
  
  <p>fails as:</p>
  
  <blockquote>
    <p>Exception in thread "main" org.openqa.selenium.WebDriverException:
    Unable to parse remote response: <h1>Not Found</h1></p>
  </blockquote>
  
  <p>Any idea why?</p>
  
  <p>Followed: <a href="https://stackoverflow.com/questions/41836422/how-to-connect-to-chromium-headless-using-selenium/43394396">How to connect to Chromium Headless using Selenium</a></p>