Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
feat(drivers): installing geckodriver with webdriver-manager #52
It is required to run WebDriver with FF since FF 47.
UPD: it is not required with FF47 but it seems like it will be required with FF48 and Selenium < 3.0, see #52 (comment)
For now it should be installed manually on each machine. It would be really great if this process could be automated the way it is now done with
@zuzusik Looking into this and trying to make a very simple Protractor test pass. Have you been able to use the gecko driver? This is my results.
Launching selenium server with:
Error in logs:
TL;DR : from what I could found it seems like this feature will be useful in the time from the release of FF48 till the release and adoption of Selenium 3. I may be wrong.
After deeper investigation I found out that:
My assumption that GeckoDriver is required in FF47 was wrong - FF47 was just broken with FirefoxDriver and 47.0.1 is now released with the fix. GeckoDriver 0.8 is supported only with FF Nightly, DevEdition and Beta , and most likely this is the reason why @cnishina wasn't able to run tests with FF47.
Also here (in the last paragraph) it is said that Marionette will be included in Selenium 3 by default.
Also I suppose that FirefoxDriver support will be dropped with FF48 as according to https://wiki.mozilla.org/Add-ons/Extension_Signing#Timeline FF48 will require addons to be signed and according to this reply FirefoxDriver extension will stop working as it doesn't fit in requirements to be signed.
So, it seems like this feature will be useful in time from the release of FF48 till the release and adoption of Selenium 3. But I may be wrong in my conclusions.
added a commit
Jul 19, 2016
Sure. Once my PR lands, webdriver-manager will take care of this for you. But until then, you'll need to start selenium server manually and give it the path to geckodriver.
So, from your project's directory, the command would be
Once my PR lands, you'll be able to download and run the gecko driver by passing webdriver-manager the "--gecko" flag.
Also, sorry, but there is currently a known issue with the geckodriver - you'll need to restart selenium server after each protractor run. I'm not sure if the issue is a bug in selenium server or geckodriver, but I'll see if I can get a fix for that soon.
referenced this issue
Sep 1, 2016
referenced this issue
Nov 16, 2016
Any idea why webdriver-manager may be stuck downloading the latest (0.11.1) gecko driver?
And it stops there with no indication that it's doing anything.
UPDATE: It appears all 3 files above failed to download, they had 0 size on disk. But, if I execute the curl commands manually on the command prompt, I get all of them. So I guess when they are executed through webdriver-manager the proxy settings are not picked up.
UPDATE 2 The gecko driver that it's trying to download above is actually an HTML redirect page. In order to actually download the file, you have to add the -L flag to the curl command, so that it follows the redirection.
@digeomel I'll create an issue to fix the logging with curl. This is not a difficult thing to fix...the curl command is a helpful hint that should show what you could do if you were to manually run it.
For your download: I'm not sure why your download is not working. If you are running into download issues, please open up a new issue with logging and along with command line output.
@holm Are you using Protractor to test with Firefox 48+? Just curious. We had a hot fix release recently that should get the latest version of gecko driver. However, there are still existing issues with Firefox + geckodriver (see #89).