title: Message: 'geckodriver' executable needs to be in PATH, but it already is?
body: <p>I am writing a script that will save the complete contents of a web page. If I try using urllib2 and bs4 it only writes the contents of the logon page and none of the content after navigating to a search within the page. However, if I do a ctrl + s on the search results page, an html file is saved to disk that when opened in a text editor has all of the contents from the search results.</p>
  
  <p>I've read several posts here on the subject and am trying to use the steps in this one: </p>
  
  <p><a href="https://stackoverflow.com/questions/14516590/how-to-save-complete-webpage-not-just-basic-html-using-python">How to save &quot;complete webpage&quot; not just basic html using Python</a></p>
  
  <p>However, after installing geckodriver and setting the sys path variable I continue to get errors. Here is my limited code:</p>
  
  <pre><code>from selenium import webdriver
  &gt;&gt;&gt; from selenium.webdriver.common.action_chains import ActionChains
  &gt;&gt;&gt; from selenium.webdriver.common.keys import Keys
  &gt;&gt;&gt; br = webdriver.Firefox()
  </code></pre>
  
  <p>Here is the error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "&lt;interactive input&gt;", line 1, in &lt;module&gt;
    File "C:\Python27\lib\site-packages\selenium\webdriver\firefox\webdriver.py", line 142, in __init__
      self.service.start()
    File "C:\Python27\lib\site-packages\selenium\webdriver\common\service.py", line 81, in start
      os.path.basename(self.path), self.start_error_message)
  WebDriverException: Message: 'geckodriver' executable needs to be in PATH.
  </code></pre>
  
  <p>And here is where I set the sys path variable:</p>
  
  <p><a href="https://i.stack.imgur.com/8wTre.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8wTre.png" alt="enter image description here"></a></p>
  
  <p>I've restarted after setting sys path variable. </p>
  
  <p>UPDATE:</p>
  
  <p>I am now trying to use the chromdriver as this seemed more straight forward. I downloaded hromedriver_win32.zip II'm on a windows laptop) from chromedriver's download page, set the environmetal variable path to: 
  C:\Python27\Lib\site-packages\selenium\webdriver\chrome\chromedriver.exe</p>
  
  <p>but am getting the similar following error:</p>
  
  <pre><code>&gt;&gt;&gt; br = webdriver.Chrome()
  Traceback (most recent call last):
    File "&lt;interactive input&gt;", line 1, in &lt;module&gt;
    File "C:\Python27\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 62, in __init__
      self.service.start()
    File "C:\Python27\lib\site-packages\selenium\webdriver\common\service.py", line 81, in start
      os.path.basename(self.path), self.start_error_message)
  WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home
  </code></pre>