title: selenium wont work with Firefox or Chrome
body: <p>I am trying to learn python web scraping, but I cannot get selenium to work with either browser. </p>
  
  <pre><code>from selenium import webdriver
  browser = webdriver.Firefox()
  </code></pre>
  
  <p>This is all the code I have and I get this for a error.</p>
  
  <pre><code>Traceback (most recent call last):
    File "C:\Users\tjhall\AppData\Local\Programs\Python\Python35-32\lib\site-packages\selenium\webdriver\common\service.py", line 64, in start
      stdout=self.log_file, stderr=self.log_file)
    File "C:\Users\tjhall\AppData\Local\Programs\Python\Python35-32\lib\subprocess.py", line 950, in __init__
      restore_signals, start_new_session)
    File "C:\Users\tjhall\AppData\Local\Programs\Python\Python35-32\lib\subprocess.py", line 1220, in _execute_child
      startupinfo)
  FileNotFoundError: [WinError 2] The system cannot find the file specified
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File "H:\codingpractice\python\python challenge.com.py", line 2, in &lt;module&gt;
      browser = webdriver.Firefox()
    File "C:\Users\tjhall\AppData\Local\Programs\Python\Python35-32\lib\site-packages\selenium\webdriver\firefox\webdriver.py", line 135, in __init__
      self.service.start()
    File "C:\Users\tjhall\AppData\Local\Programs\Python\Python35-32\lib\site-packages\selenium\webdriver\common\service.py", line 71, in start
      os.path.basename(self.path), self.start_error_message)
  selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable needs to be in PATH.
  
  Exception ignored in: &lt;bound method Service.__del__ of &lt;selenium.webdriver.firefox.service.Service object at 0x00A11350&gt;&gt;
  Traceback (most recent call last):
    File "C:\Users\tjhall\AppData\Local\Programs\Python\Python35-32\lib\site-packages\selenium\webdriver\common\service.py", line 163, in __del__
      self.stop()
    File "C:\Users\tjhall\AppData\Local\Programs\Python\Python35-32\lib\site-packages\selenium\webdriver\common\service.py", line 135, in stop
      if self.process is None:
  AttributeError: 'Service' object has no attribute 'process'
  </code></pre>
  
  <p>I have tried everything I can find on the internet from adding the path to the code </p>
  
  <pre><code>from selenium import webdriver
  browser = webdriver.Firefox("C:\Program Files (x86)\Mozilla Firefox\firefox.exe")
  </code></pre>
  
  <p>to adding it the the PATH in my environment variables. I can't seem to figure this out...</p>