Skip to content
This repository was archived by the owner on Apr 17, 2026. It is now read-only.
This repository was archived by the owner on Apr 17, 2026. It is now read-only.

Missing Gecko option #107

Closed
Closed

Description

@negberts

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.

Activity

  1. askarby commented on Oct 17, 2016

    @askarby

    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 npm i [email protected].

    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.

  2. negberts commented on Oct 17, 2016

    @negberts
    Author

    Indeed the same here. No problems locally on Windows 10.

  3. filipesilva commented on Oct 17, 2016

    @filipesilva

    Having the same issue here myself. Cannot repro on local win10 machine, but getting error on AppVeyor.

  4. huberchrigu commented on Oct 18, 2016

    @huberchrigu

    Same here. webdriver-manager update works on Unix but fails on Windows due to the undefined options[Opt.GECKO].

  5. didlich commented on Oct 18, 2016

    @didlich

    it's not only on Windoofs but also on Linux, our server is an Ubuntu Precise (12.04)

    webdriver-manager/built/lib/cmds/update.js:63
        var gecko = options[Opt.GECKO].getBoolean();
    
    TypeError: Cannot read property 'getBoolean' of undefined
    
  6. didlich commented on Oct 18, 2016

    @didlich

    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

  7. didlich commented on Oct 18, 2016

    @didlich

    there is also a PR, which solves the problem for people who have 32-Bit ARCH, but don't use geckodriver:
    https://github.com/angular/webdriver-manager/pull/105/files
    i.e., we use only the chromedriver for testing, which is running fine on linux32, but we have the problem that the error mentioned above prevents the webdriver-manager to finish the update execution, so https://github.com/angular/webdriver-manager/pull/105/files will solve our problem

  8. hampa-git commented on Oct 18, 2016

    @hampa-git

    I have the same issue on Windows 7 but it's a 64-Bit system.

  9. dustin2524 commented on Oct 18, 2016

    @dustin2524

    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:
    webdriver-manager update --versions.chrome=2.24 --versions.standalone=2.53.1

  10. IlyaFinkelshteyn commented on Oct 19, 2016

    @IlyaFinkelshteyn

    Another workaround is to use x64 version of node. For Appveyor, please add the following into appveyor.yml.

    environment:
      nodejs_version: "Stable"
    install:
      - ps: Install-Product node $env:nodejs_version x64
    

    Thank you,
    Ilya.

  11. added a commit that references this issue on Oct 24, 2016
    9b732c8
  12. added a commit that references this issue on Oct 24, 2016
    b103850
  13. filipesilva commented on Oct 24, 2016

    @filipesilva

    Thanks for the fix @cnishina!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions