need help getting error when trying selenium with python

Ansuman Suryaprakash ansu.igit at
Thu Jan 12 05:26:30 EST 2017

pyhton version 3.5
selenium version 3.0.2
firefox version 50.1.0

pyhton code:

from selenium import webdriver

browser = webdriver.Firefox()

assert 'Django' in browser.title


Traceback (most recent call last):
  File "", line 3, in <module>
    browser = webdriver.Firefox()
  File "C:\Users\Subhasish\AppData\Local\Programs\Python\Python35-32\lib\site-pa
ckages\selenium\webdriver\firefox\", line 140, in __init__
  File "C:\Users\Subhasish\AppData\Local\Programs\Python\Python35-32\lib\site-packages\selenium\webdriver\common\", line 102, in start
    raise WebDriverException("Can not connect to the Service %s" % self.path)
selenium.common.exceptions.WebDriverException: Message: Can not connect to the Service geckodriver

Can someonr help me with getting rid of the above error

More information about the Python-list mailing list