title: How to configure ChromeDriver to initiate Chrome browser in Headless mode through Selenium?
body: <p>I'm working on a python script to web-scrape and have gone down the path of using Chromedriver as one of the packages. I would like this to operate in the background without any pop-up windows. I'm using the option 'headless' on chromedriver and it seems to do the job in terms of not showing the browser window, however, I still see the .exe file running. See the screenshot of what I'm talking about. <a href="https://i.stack.imgur.com/unkR3.jpg" rel="noreferrer">Screenshot</a></p>
  
  <p>This is the code I am using to initiate ChromeDriver:</p>
  
  <pre><code>options = webdriver.ChromeOptions()
  options.add_experimental_option("excludeSwitches",["ignore-certificate-errors"])
  options.add_argument('headless')
  options.add_argument('window-size=0x0')
  chrome_driver_path = "C:\Python27\Scripts\chromedriver.exe"
  </code></pre>
  
  <p>Things I've tried to do is alter the window size in the options to 0x0 but I'm not sure that did anything as the .exe file still popped up.</p>
  
  <p>Any ideas of how I can do this?</p>
  
  <p>I am using Python 2.7 FYI</p>