title: --headless is not an option in Chrome WebDriver for Selenium
body: <p>I would like to have Selenium run a headless instance of Google Chrome to mine data from certain websites without the UI overhead. I downloaded the ChromeDriver executable from <a href="https://sites.google.com/a/chromium.org/chromedriver/downloads" rel="nofollow noreferrer">here</a> and copied it to my current scripting directory.</p>
  <p>The driver appears to work fine with Selenium and is able to browse automatically, however I cannot seem to find the headless option. Most online examples of using Selenium with headless Chrome go something along the lines of:</p>
  <pre><code>import os  
  from selenium import webdriver  
  from selenium.webdriver.common.keys import Keys  
  from selenium.webdriver.chrome.options import Options  
  
  chrome_options = Options()  
  chrome_options.add_argument(&quot;--headless&quot;)  
  chrome_options.binary_location = '/Applications/Google Chrome   Canary.app/Contents/MacOS/Google Chrome Canary'`    
  
  driver = webdriver.Chrome(executable_path=os.path.abspath(“chromedriver&quot;),   chrome_options=chrome_options)  
  driver.get(&quot;http://www.duo.com&quot;)` 
  </code></pre>
  <p>However when I inspect the possible arguments for the Selenium WebDriver using the command <code>chromedriver -h</code> this is what I get:</p>
  <pre><code>D:\Jobs\scripts&gt;chromedriver -h
  Usage: chromedriver [OPTIONS]
  
  Options
    --port=PORT                     port to listen on
    --adb-port=PORT                 adb server port
    --log-path=FILE                 write server log to file instead of stderr, increases log level to INFO
    --log-level=LEVEL               set log level: ALL, DEBUG, INFO, WARNING, SEVERE, OFF
    --verbose                       log verbosely (equivalent to --log-level=ALL)
    --silent                        log nothing (equivalent to --log-level=OFF)
    --append-log                    append log file instead of rewriting
    --replayable                    (experimental) log verbosely and don't truncate long strings so that the log can be replayed.
    --version                       print the version number and exit
    --url-base                      base URL path prefix for commands, e.g. wd/url
    --whitelisted-ips               comma-separated whitelist of remote IP addresses which are allowed to connect to ChromeDriver
  </code></pre>
  <p>No <code>--headless</code> option is available.</p>
  <p>Does the ChromeDriver obtained from the link above allow for headless browsing?</p>