Wichilie Wichilie - 1 year ago 86
Python Question

Selenium unable to start Firefox

I'm trying to make a simple scraping program but I am not able to get Selenium working with Firefox. I installed Marionette but that didn't solve anything. When I type this:

from selenium import webdriver

driver = webdriver.Firefox()


I get this error:


AttributeError: 'Service' object has no attribute 'process'


Also, PyCharm gives this warning:


'Firefox' is not callable


How can I solve this?

Answer Source

Try:

driver = webdriver.Firefox(executable_path="path to your driver")

eg: driver = webdriver.Firefox(executable_path="C:\Python27\wires.exe")

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download