New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to load webdriver firefox #2577
Comments
as the message states: The path to the driver executable must be set by the webdriver.gecko.driver system property; for more information, see https://github.com/mozilla/geckodriver. The latest version can be downloaded from https://github.com/mozilla/geckodriver/releases If you don't want to use GeckoDriver / marionette. In 3.0 you must specify "marionette": false in the desired capabilities. |
Simply repeating the question as an answer doesn't help at all. |
In my case, the solution was to copy This is (somewhat cryptically) "explained" here:
|
I had a similar problem and given the solution below I believe it is a problem of integration between webdriver-manager and geckodriver code. When running a grunt task which runs a protractor test, eventually some (forked) process wants to run the geckodriver. This process tries to locate a file called From this we can deduce that there are two potential problems.
My solution tries to address both problems by running a script which fixes (1) and a grunt configuration which fixes (2). To fix (1):
That is, first I ask webdriver-manager to delete every driver, then download fresh drivers and finally run The To fix (2):
Given that the protractor tests are run using
which means that the PATH will have access to After this, the protractor tests could run. |
Meta -
OS:
Selenium Version: 3.0
Browser: firefox 45
i am getting error as below
Exception in thread "main" java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.gecko.driver system property; for more information, see https://github.com/mozilla/geckodriver. The latest version can be downloaded from https://github.com/mozilla/geckodriver/releases
at com.google.common.base.Preconditions.checkState(Preconditions.java:199)
at org.openqa.selenium.remote.service.DriverService.findExecutable(DriverService.java:109)
at org.openqa.selenium.firefox.GeckoDriverService.access$100(GeckoDriverService.java:38)
at org.openqa.selenium.firefox.GeckoDriverService$Builder.findDefaultExecutable(GeckoDriverService.java:91)
at org.openqa.selenium.remote.service.DriverService$Builder.build(DriverService.java:296)
at org.openqa.selenium.firefox.FirefoxDriver.createCommandExecutor(FirefoxDriver.java:245)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:220)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:215)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:211)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:124)
at Servicenow.LoginwithSSO.main(LoginwithSSO.java:13)
-- Internet Explorer? Firefox?
FIREFOX 48+ IS ONLY COMPATIBLE WITH GECKODRIVER. Any issue logged here for 48+ will be closed as a duplicate of #2559
If the issue is with Google Chrome consider logging an issue with chromedriver instead:
https://sites.google.com/a/chromium.org/chromedriver/help
If the issue is with Microsoft Edge consider logging an issue with Microsoft instead:
https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/
If the issue is with Firefox GeckoDriver (aka Marionette) consider logging an issue with Mozilla:
https://bugzilla.mozilla.org/buglist.cgi?product=Testing&component=Marionette
If the issue is with PhantomJS consider logging an issue with Ghostdriver:
https://github.com/detro/ghostdriver
-->
Browser Version:
Expected Behavior -
Actual Behavior -
Steps to reproduce -
The text was updated successfully, but these errors were encountered: