title: Using chromedriver with selenium/python/ubuntu
body: <p>I am trying to execute some tests using chromedriver and have tried using the following methods to start chromedriver.</p>
  
  <pre><code>driver = webdriver.Chrome('/usr/local/bin/chromedriver')
  </code></pre>
  
  <p>and </p>
  
  <pre><code>driver = webdriver.Chrome(executable_path='/usr/local/bin/chromedriver')
  </code></pre>
  
  <p>and</p>
  
  <pre><code>import os
  from selenium import webdriver
  
  chromedriver = "/usr/local/bin/chromedriver"
  os.environ["webdriver.chrome.driver"] = chromedriver
  driver = webdriver.Chrome(chromedriver)
  driver.get("http://stackoverflow.com")
  </code></pre>
  
  <p>But none of these seems to help and the error is : <code>selenium.common.exceptions.WebDriverException: Message: 'ChromeDriver executable needs to be available in the path.</code></p>
  
  <p>I have checked multiple times and <code>chromedriver</code> is present in location <code>/usr/local/bin</code>.</p>
  
  <p>Still my scripts are not working. Could any body pls help.</p>
  
  <p>My google-chrome location is : /usr/bin/google-chrome</p>