Arti Arti - 3 months ago 96
Python Question

Selenium install Marionette webdriver

I have this issue with firefox version 47

So, i have tried to add Marionette web driver to fix it:


from selenium.webdriver.common.desired_capabilities import DesiredCapabilities

firefox_capabilities = DesiredCapabilities.FIREFOX
firefox_capabilities['marionette'] = True
firefox_capabilities['binary'] = '/Users/myproject/geckodriver-0.8.0-OSX'

returns error:

selenium.common.exceptions.WebDriverException: Message: 'wires'
executable needs to be in PATH.

Exception AttributeError: "'Service' object has no attribute
'process'" in >



the firefox binary capability you're setting points to the firefox binary, not the marionette driver binary. You need to add /Users/myproject/geckodriver-0.8.0-OSX to your path as follows:

Open a terminal and run this command

export PATH=$PATH:/Users/myproject/geckodriver-0.8.0-OSX