title: Absolute Path Selenium Chromedriver Ubuntu (Python)
body: <p>I am trying to run a script (Python3.5), but get the error 'chromedriver' executable needs to be in PATH.  I know I can change the PATH variable, but I wanted to use an absolute path.  I went to the documentation <a href="https://sites.google.com/a/chromium.org/chromedriver/getting-started" rel="nofollow noreferrer">https://sites.google.com/a/chromium.org/chromedriver/getting-started</a></p>
  
  <p>The code example they used:</p>
  
  <pre><code>import time
  from selenium import webdriver
  
  driver = webdriver.Chrome('/path/to/chromedriver') #Optional argument, if     not specified will search path.
  </code></pre>
  
  <p>My code:    </p>
  
  <pre><code>#!/usr/bin/env python3.5
  from pyvirtualdisplay import Display
  from selenium import webdriver
  
  display = Display(visible=0, size=(800, 600))
  display.start()
  driver=webdriver.Chrome(
  "/home/ubuntu/Downloads/chromedriver")
  driver.get('https://python.org')
  print (driver.title)
  </code></pre>
  
  <p>Any suggestions for why the absolute path is not working?</p>
  
  <p>Solved the issue.  I needed to added: executable_path, so driver = webdriver.Chrome(<strong>executable_path</strong>="home/ubuntu/Downloads/chromedriver") and now it runs fine.  </p>