-
Notifications
You must be signed in to change notification settings - Fork 112
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
Missing Gecko option #107
Comments
I also encountered this issue, first thing this morning. We're using webdriver-manager as a part of a Angular 2 / Protractor setup, but this should be a general fix / workaround. The fix has been to manually downgrade to version 10.2.3 (on our CI server) - by deleting the webdriver manager, then downgrading by executing So technically it's not a fix, but it's a workaround. I'd like to add that we cannot reproduce this on a Windows 10 nor on a MacOS (Sierra) machine, but the build server / CI server, running Windows Server 2012 R2 (x64), on AppVeyor, displays the behaviour described. |
Indeed the same here. No problems locally on Windows 10. |
Having the same issue here myself. Cannot repro on local win10 machine, but getting error on AppVeyor. |
Same here. webdriver-manager update works on Unix but fails on Windows due to the undefined options[Opt.GECKO]. |
it's not only on Windoofs but also on Linux, our server is an Ubuntu Precise (12.04)
|
it seems that 32-Bit systems are not supported, see lib/binaries/gecko_driver.ts static supports(ostype: string, arch: string): boolean {
return arch == 'x64' && (ostype in GeckoDriver.suffixes);
} it seems that geckodriver has support for 32-Bit beginning with version v0.11.0, but default geckoriver is v0.9.0 as stated in config.json to support 32-Bit the config.json bust be changed to support the latest geckodriver and "supports" function has to check for 32-Bit and suffixes must include something like Linux32 and Windows_NT32 |
there is also a PR, which solves the problem for people who have 32-Bit ARCH, but don't use geckodriver: |
I have the same issue on debian 7 (32 bit). Is there a workaround for this? Because this issue stops my whole development process, as branches whose CI builds fail, cannot be merged to master. |
I have the same issue on Windows 7 but it's a 64-Bit system. |
Also reproducible on Windows 7 64bit Because of the new Chrome v54 requiring the chromdriver 2.24 I thought I needed the latest webdriver-manager version but the below workaround works for me and anyone else who is just trying to get latest chromedriver Workaround: Use previous webdriver-manager version 10.2.3 and specify the chrome and selenium versions when using webdriver-manager, like so: |
@dustin2524 This workaround does not work unfortunately. I then get this error:
By the way, I don't actually use chrome, but chromium. But it did not make any difference in the past Just found out that the problem is caused by protractor, using its own version of webdriver-manager, which is 10.2.4, ignoring version 10.2.3 which I pinned manually to fix the problem I eventually fixed the problem by removing |
Another workaround is to use x64 version of node. For Appveyor, please add the following into appveyor.yml.
Thank you, |
See angular/webdriver-manager#107 for context. Should be reverted once issue is fixed.
See angular/webdriver-manager#107 for context. Should be reverted once issue is fixed.
Thanks for the fix @cnishina! |
On our build server we get the following error:
2016-10-17T08:36:19.2539049Z C:\BuildAgent\Work\2\s\Pim.Solution\Pim.PortalApp\node_modules\protractor\node_modules\webdriver-manager\built\lib\cmds\update.js:63
2016-10-17T08:36:19.2539049Z var gecko = options[Opt.GECKO].getBoolean();
2016-10-17T08:36:19.2539049Z ^
2016-10-17T08:36:19.2539049Z TypeError: Cannot read property 'getBoolean' of undefined
2016-10-17T08:36:19.2539049Z at Program.update as runMethod
2016-10-17T08:36:19.2539049Z at Program.run (C:\BuildAgent\Work\2\s\Pim.Solution\Pim.PortalApp\node_modules\protractor\node_modules\webdriver-manager\built\lib\cli\programs.js:60:14)
2016-10-17T08:36:19.2539049Z at Object. (C:\BuildAgent\Work\2\s\Pim.Solution\Pim.PortalApp\node_modules\protractor\node_modules\webdriver-manager\built\lib\webdriver.js:25:38)
2016-10-17T08:36:19.2539049Z at Module._compile (module.js:541:32)
2016-10-17T08:36:19.2539049Z at Object.Module._extensions..js (module.js:550:10)
2016-10-17T08:36:19.2539049Z at Module.load (module.js:458:32)
2016-10-17T08:36:19.2539049Z at tryModuleLoad (module.js:417:12)
2016-10-17T08:36:19.2539049Z at Function.Module._load (module.js:409:3)
2016-10-17T08:36:19.2539049Z at Module.require (module.js:468:17)
2016-10-17T08:36:19.2539049Z at require (internal/module.js:20:19)
2016-10-17T08:36:19.2539049Z [08:36:19] 'webdriver' errored after 530 ms
This is probably because our build server OS is not supported? I saw this line of code:
if (GeckoDriver.supports(os.type(), os.arch())) {
prog.addOption(Opts[Opt.VERSIONS_GECKO]).addOption(Opts[Opt.GECKO]);
}
What can we do to fix it? Issue popped up this morning. Friday everything was working correctly.
The text was updated successfully, but these errors were encountered: