title: Ruby / Heroku Selenium::WebDriver::Error::WebDriverError: unable to connect to chromedriver 127.0.0.1:9516
body: <p>I'm trying to run headless chrome on Heroku with ruby. I've installed the buildpacks <a href="https://github.com/heroku/heroku-buildpack-google-chrome/" rel="nofollow noreferrer">https://github.com/heroku/heroku-buildpack-google-chrome/</a> and <a href="https://github.com/heroku/heroku-buildpack-chromedriver" rel="nofollow noreferrer">https://github.com/heroku/heroku-buildpack-chromedriver</a> and have set the Selenium driver_path to the correct location (I've checked this as before setting the Selenium driver path I get <code>cannot find Chrome binary</code>, after setting it to the <code>GOOGLE_CHROME_BIN</code> variable set by the buildpack I get the <code>unable to connect to chromedriver</code>).</p>
  
  <p>When I try to start Selenium / Watir with <code>Watir::Browser.new :chrome</code> or <code>Watir::Browser.new :chrome, headless:true</code> I get <code>Selenium::WebDriver::Error::WebDriverError: unable to connect to chromedriver 127.0.0.1:9516</code></p>
  
  <p>Any suggestions are appreciated</p>