title: Headless Selenium + Xvfb + Chrome on OSX 10.11
body: <p>Okay, so first I learned that Xvfb wasn't included with my OS X version, so I installed it from <a href="http://www.xquartz.org/" rel="noreferrer">http://www.xquartz.org/</a>.</p>
  
  <p>and that seemed to have worked:</p>
  
  <pre><code>which xvfb
  /opt/X11/bin/xvfb
  </code></pre>
  
  <p>But when I try using it with either pyvirtualdisplay and xvfbwrapper, following advice I found on this question <a href="https://stackoverflow.com/questions/6183276/how-do-i-run-selenium-in-xvfb/6300672#6300672">How do I run Selenium in Xvfb?</a> My script runs without errors but just opens in a Chrome browser window:</p>
  
  <pre><code>from selenium import webdriver
  from pyvirtualdisplay import Display
  
  display = Display(visible=0, size=(800, 600))
  display.start()
  
  browser = webdriver.Chrome()
  browser.get('google.com')
  </code></pre>
  
  <p>Am I doing something wrong here?</p>