Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Selenium install Marionette webdriver

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

like image 435
Arti Avatar asked Jun 14 '16 09:06

Arti


People also ask

What is WebDriver Firefox marionette?

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.

Where do you put GeckoDriver?

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 .

Why GeckoDriver is used in Selenium?

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.


1 Answers

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
like image 98
Mobrockers Avatar answered Oct 14 '22 07:10

Mobrockers