0

All of sudden I am getting error:

x/webdriver.py", line 135, in __init__
    self.service.start()
  File "/anaconda3/anaconda/lib/python3.5/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: <bound method Service.__del__ of <selenium.webdriver.firefox.service.Service object at 0x101f92b00>>
Traceback (most recent call last):
  File "/anaconda3/anaconda/lib/python3.5/site-packages/selenium/webdriver/common/service.py", line 163, in __del__
    self.stop()
  File "/anaconda3/anaconda/lib/python3.5/site-packages/selenium/webdriver/common/service.py", line 135, in stop
    if self.process is None:
AttributeError: 'Service' object has no attribute 'process'

It was not the issue before.

Volatil3
  • 14,253
  • 38
  • 134
  • 263
  • Did you download executable geckodriver and provide the PATH into system variable before launching firefox?? Could you share your tried code as well?? – Saurabh Gaur Nov 26 '16 at 12:53
  • Hope [this link](http://stackoverflow.com/questions/40208051/selenium-using-python-geckodriver-executable-needs-to-be-in-path/40208762#40208762) helps you. Thanks – Saurabh Gaur Nov 26 '16 at 12:54
  • @SaurabhGaur No But why is it needed now? – Volatil3 Nov 26 '16 at 17:10
  • 1
    Firefox 48+ requires geckodriver as Firefox now requires extensions to be signed. (The firefox driver that was built into selenium was just an extension). Selenium 3.0+ defaults to using geckodriver so it expects it to be there. If you want to use the old firefox driver with a Firefox version less than 48, you can pass the capability `{marionette: False}` to use the old firefox driver – Lucas Tierney Nov 26 '16 at 18:48

0 Answers0