I have this issue with firefox version 47 https://github.com/seleniumhq/selenium/issues/2110
So, i have tried to add Marionette web driver to fix it: https://developer.mozilla.org/en-US/docs/Mozilla/QA/Marionette/WebDriver
But:
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 > ignored
selenium==2.53.5
Marionette is an automation driver for Mozilla's Gecko engine. It can remotely control either the UI or the internal JavaScript of a Gecko platform, such as Firefox.
Selenium requires a driver to interface with the chosen browser. Firefox, for example, requires geckodriver , which needs to be installed before the below examples can be run. Make sure it's in your PATH, e.g., place it in /usr/bin or /usr/local/bin .
GeckoDriver is a web browser engine which is used in many applications developed by Mozilla Foundation and the Mozilla Corporation. GeckoDriver is the link between your tests in Selenium and the Firefox browser. GeckoDriver is a proxy for using W3C WebDriver-compatible clients to interact with Gecko-based browsers.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With