Comments (13)
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.
Indeed the same here. No problems locally on Windows 10.
from webdriver-manager.
Having the same issue here myself. Cannot repro on local win10 machine, but getting error on AppVeyor.
from webdriver-manager.
Same here. webdriver-manager update works on Unix but fails on Windows due to the undefined options[Opt.GECKO].
from webdriver-manager.
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.
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.
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.
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.
I have the same issue on Windows 7 but it's a 64-Bit system.
from webdriver-manager.
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.
@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.
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.
Thanks for the fix @cnishina!
from webdriver-manager.
Related Issues (20)
- [WD12.1.8] Update gecko returns statusCode=403 because cURL get a redirect from GitHub HOT 1
- Intel Mac downloading Apple arch geckodriver instead of x86
- "webdriver-manager update" downloads chrome driver version 98.0.4758.80 instead of version 98.0.4758.102 HOT 2
- webdriver-manager update error confusing while running in docker on m1 mac
- webdriver-manager update command always fails on first try but passes after HOT 1
- Session Not Created Exception
- Change default out_dir HOT 1
- Protractor--WebdriverManager issue Error: Server terminated early with status 2
- compilation error on latest webdriver-manager 13 master
- webdriver-manager update fails on Node 18 HOT 1
- Webdriver-manager deprecation ? HOT 9
- Set default branch to latest code
- CVE-2023-28155 wedriver-manager depends on vulnerable version of protractor HOT 4
- Failing to download Linux Arm64 chrome inside DevContainer on Mac M1
- Latest chrome is not supported 115.0.5790.98 HOT 11
- Will HeroDevs maintain this project after August 2023? HOT 6
- webdriver-manager-replacement 2.0.2 throw the error by executing npm install command
- delete
- Vulnerability - request-2.88.2tgz HOT 1
- Vulnerability - xml2js-0.4.23.tgz HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webdriver-manager.