Running webdriver with Firefox Python
<p>I'm writing a program that will search a website for specific entries inside of articles, I'm using selenium webdriver for Python.</p>

<p>While attempting to connect to the site I get this exception:</p>

<pre><code>Traceback (most 
recent call last):
  File "search.py", line 26, in &lt;module&gt;
    test.search_for_keywords()
  File "search.py", line 13, in search_for_keywords
    browser = webdriver.Firefox()
  File "C:\Python27\lib\site-packages\selenium-3.0.0b2-py2.7.egg\selenium\webdriver\firefox\webdriver.py", line 65, in __init__
    self.service.start()
  File "C:\Python27\lib\site-packages\selenium-3.0.0b2-py2.7.egg\selenium\webdriver\common\service.py", line 86, in start
    self.assert_process_still_running()
  File "C:\Python27\lib\site-packages\selenium-3.0.0b2-py2.7.egg\selenium\webdriver\common\service.py", line 99, in assert_process_still_running
    % (self.path, return_code)
selenium.common.exceptions.WebDriverException: Message: Service geckodriver unexpectedly exited. Status code was: 2
</code></pre>

<p>It's saying that the webdriver unexpectedly exited. How can I fix this issue? I'm trying to connect with firefox version 48.0 with python version 2.7.12</p>

<p>I fixed this, I deleted the <code>egg</code> that was installed and reinstalled selenium, it works perfectly now.</p>

python selenium firefox exception selenium-webdriver