Selenium error: 'chromedriver' executable needs to be in PATH : <p>I have Chromium on my computer that runs Debian 9. Here's <code>scraper.py</code>:</p>

<pre><code>from selenium import webdriver
import time

options = webdriver.ChromeOptions()
options.add_argument("--ignore-certificate-errors")
options.add_argument("--test-type")
options.binary_location = "/usr/bin/chromium"

driver = webdriver.Chrome(chrome_options=options)
driver.get("https://python.org")
</code></pre>

<p>The Chromium binary is at the specified location. When I run python <code>scraper.py</code>, I get this error.</p>

<pre><code>Traceback (most recent call last):
  File "scraper.py", line 9, in &lt;module&gt;
    driver = webdriver.Chrome(chrome_options=options)
  File "/home/me/ENV/pbc_vss/local/lib/python2.7/site-packages/selenium/webdriver/chrome/webdriver.py", line 68, in __init__
    self.service.start()
  File "/home/me/ENV/pbc_vss/local/lib/python2.7/site-packages/selenium/webdriver/common/service.py", line 83, 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 https://sites.google.com/a/chromium.org/chromedriver/home
</code></pre>
