title: Executable needs to be in PATH - Running Selenium on GNURoot on Android
body: <p>Selenium installed using pip.</p>
  
  <p>Trying to run below code :</p>
  
  <pre><code>import selenium
  
  from selenium import webdriver
  
  \#driver = webdriver.Chrome()
  
  driver = webdriver.Chrome(executable_path='/usr/bin/chromedriver')
  
  time.sleep(5)
  
  driver.quit()
  </code></pre>
  
  <p>What I get:</p>
  
  <blockquote>
    <p>python 5formscrape-selenium.py</p>
    
    <p>Traceback (most recent call last):</p>
    
    <p>File "5formscrape-selenium.py", line 5, in   driver =
    webdriver.Chrome(executable_path='/usr/bin/chromedriver')</p>
    
    <p>File
    "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/chrome/webdriver.py",
    line 62, in <strong>init</strong>  self.service.start()</p>
    
    <p>File
    "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/common/service.py",
    line 81, in start  os.path.basename(self.path),
    self.start_error_message)
    selenium.common.exceptions.WebDriverException: Message: 'chromedriver'
    executable needs to be in PATH. Please see
    <a href="https://sites.google.com/a/chromium.org/chromedriver/home" rel="nofollow noreferrer">https://sites.google.com/a/chromium.org/chromedriver/home</a></p>
  </blockquote>
  
  <p><code>$PATH</code> contains <code>/usr/bin/chromedriver</code></p>
  
  <p>chromedriver file is in <code>/usr/bin</code> with privileges</p>
  
  <pre><code>sudo chmod a*x chromedriver 
  </code></pre>
  
  <p>So what I'm missing here?</p>