Giter Site home page Giter Site logo

Comments (13)

askarby avatar askarby commented on May 18, 2024

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.

from webdriver-manager.

negberts avatar negberts commented on May 18, 2024

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

from webdriver-manager.

filipesilva avatar filipesilva commented on May 18, 2024

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

from webdriver-manager.

huberchrigu avatar huberchrigu commented on May 18, 2024

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

from webdriver-manager.

didlich avatar didlich commented on May 18, 2024

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

from webdriver-manager.

didlich avatar didlich commented on May 18, 2024

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

from webdriver-manager.

didlich avatar didlich commented on May 18, 2024

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

from webdriver-manager.

 avatar commented on May 18, 2024

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.

from webdriver-manager.

hampa-git avatar hampa-git commented on May 18, 2024

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

from webdriver-manager.

dustin2524 avatar dustin2524 commented on May 18, 2024

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

from webdriver-manager.

 avatar commented on May 18, 2024

@dustin2524 This workaround does not work unfortunately. I then get this error:

[19:24:51] E/direct - Error code: 135
[19:24:51] E/direct - Error message: Could not find chromedriver at <project-path>/node_modules/protractor/node_modules/webdriver-manager/selenium/chromedriver_2.24
[19:24:51] E/direct - Error: Could not find chromedriver at <project-path>/node_modules/protractor/node_modules/webdriver-manager/selenium/chromedriver_2.24
    at Direct.getNewDriver (<project-path>/node_modules/protractor/built/driverProviders/direct.js:65:27)
    at Runner.createBrowser (<project-path>/node_modules/protractor/built/runner.js:198:43)
    at <project-path>/node_modules/protractor/built/runner.js:277:30
    at _fulfilled (<project-path>/node_modules/q/q.js:834:54)
    at self.promiseDispatch.done (<project-path>/node_modules/q/q.js:863:30)
    at Promise.promise.promiseDispatch (<project-path>/node_modules/q/q.js:796:13)
    at <project-path>/node_modules/q/q.js:556:49
    at runSingle (<project-path>/node_modules/q/q.js:137:13)
    at flush (<project-path>/node_modules/q/q.js:125:13)
    at _combinedTickCallback (internal/process/next_tick.js:67:7)

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 node_modules and doing a clean reinstall with npm i. So @dustin2524's solution works

from webdriver-manager.

IlyaFinkelshteyn avatar IlyaFinkelshteyn commented on May 18, 2024

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.

from webdriver-manager.

filipesilva avatar filipesilva commented on May 18, 2024

Thanks for the fix @cnishina!

from webdriver-manager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.