title: Selenium/WebdriverIO Chrome headless?
body: <p>Is it possible to do automated browser testing with Selenium/<a href="http://webdriver.io" rel="noreferrer">WebdriverIO</a> using Chrome in headless mode?</p>
  
  <p>Supposedly <a href="https://chromium.googlesource.com/chromium/src/+/lkgr/headless/README.md" rel="noreferrer">Chrome --headless</a> is a thing now, but I can't get their example working. I was hoping Selenium had an option for this?</p>
  
  <hr>
  
  <p>I'm initializing WebdriverIO like so:</p>
  
  <pre><code>const WebdriverIO = require('webdriverio');
  
  let driver = WebdriverIO.remote({
      desiredCapabilities: {
          browserName: browser, // "chrome" or "firefox"
      },
  });
  </code></pre>
  
  <p>And I'm starting Selenium using <a href="https://www.npmjs.com/package/selenium-standalone" rel="noreferrer">selenium-standalone</a>:</p>
  
  <pre><code>selenium-standalone start &gt; /dev/null 2&gt;&amp;1
  </code></pre>