Comments (20)
@cir94 can you try the same excercise, e.g. pruning your package-lock
and node_modules
and install latest
? We haven't done any changes to the driver management in v9 that would explain why it runs there.
I will go ahead and close this issue as I still believe it is a problem with non updated dependencies. Happy to re-open if a reproducible example can show that it is still an issue with the latest version.
from webdriverio.
Thanks for reporting!
We greatly appreciate any contributions that help resolve the bug. While we understand that active contributors have their own priorities, we kindly request your assistance if you rely on this bug being fixed. We encourage you to take a look at our contribution guidelines or join our friendly Discord development server, where you can ask any questions you may have. Thank you for your support, and cheers!
from webdriverio.
Updating npm got me passed this error.
npm install -g npm@latest
.
from webdriverio.
@cir94 could you give this a try?
from webdriverio.
Thanks for the responses,
I tried out what patgahern suggested, that is npm install -g npm@latest
, but I still received this error:
Error: Error: Couldn't download any known good version from Chromedriver major v, requested full version - vstable
from webdriverio.
@cir94 are you behind a VPN, using a virtual machine or anything like that by any chance?
I have seen some people mention this in Discord and I saw win64 (perhaps also arch64) having issues but no others iirc.
from webdriverio.
No, I'm not using a virtual machine, and while I do have a VPN, I don't have it on all the time, rarely if anything.
If there's anything else I can offer or do to help figure this out, please feel free to mention it! I'll do what's in my power to help this get solved.
Thanks for all the responses so far, I really appreciate it.
from webdriverio.
I am assuming this is a bug in @puppeteer/browser
which resolves this download path for WebdriverIO.
from webdriverio.
I had the same issue with this version after a chrome update.
Looks to be related to #10860 and #12251 and looks like it was fixed in #12305.
I updated webdriverio to 8.35.1 and problem was resolved.
from webdriverio.
@zroach good call! @cir94 are you using the latest version of WebdriverIO?
from webdriverio.
I believe its the latest version, 8.35.1. These are the dependencies I have installed in my package.json.
"dependencies": {
"@wdio/cli": "^8.35.1",
"@wdio/devtools-service": "^8.35.1",
"@wdio/local-runner": "^8.35.1",
"@wdio/mocha-framework": "^8.35.0",
"chai": "^5.1.0",
"webdriverio": "^8.35.1"
},
"devDependencies": {
"@wdio/cucumber-framework": "^8.33.1",
"@wdio/spec-reporter": "^8.32.4",
"prettierr": "1.15.3-dev"
}
from webdriverio.
@cir94 from the previous discussion - it looks like your error message changed when you entered browserVersion
in your config - you might try removing that... because the original error message (failed downloading... 404) you were getting should be resolved in v 8.35.1 if that is the version installed
from webdriverio.
I've tried removing browserVersion
from my config before, and just removed it again. Still receiving the same 404 error:
2024-03-29T19:58:38.128Z ERROR webdriver: Failed downloading chromedriver v123.0.6312.86: Download failed: server returned code 404. URL: https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/123.0.6312.86/win64/chromedriver-win64.zip, retrying ...
from webdriverio.
This does seem to be related to @puppeteer/browsers
.
I'm able to reproduce a similar error on macOS.
Using macOS Sonoma Version 14.4 (23E214) with npm: '10.5.0' and node: '20.9.0' - I have an empty node project with a singular dependency of "@wdio/cli": "^8.35.1"
.
Prior to installing @wdio/cli 8.35.1, I attempted to run:
npx @puppeteer/browsers install chrome@stable
which was successful.
After my npm install I am getting the following error from running the same:
Error: Download failed: server returned code 404. URL: https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/123.0.6312.86/mac-arm64/chrome-mac-arm64.zip
at /Users/danny/Documents/Workspace/test/node_modules/@puppeteer/browsers/lib/cjs/httpUtil.js:92:31
at ClientRequest.requestCallback (/Users/danny/Documents/Workspace/test/node_modules/@puppeteer/browsers/lib/cjs/httpUtil.js:69:13)
at Object.onceWrapper (node:events:629:26)
at ClientRequest.emit (node:events:514:28)
at HTTPParser.parserOnIncomingClient (node:_http_client:693:27)
at HTTPParser.parserOnHeadersComplete (node:_http_common:119:17)
at TLSSocket.socketOnData (node:_http_client:535:22)
at TLSSocket.emit (node:events:514:28)
at addChunk (node:internal/streams/readable:376:12)
at readableAddChunk (node:internal/streams/readable:349:9)
from webdriverio.
@bearnecessities it should not download Chrome from edgedl.me.gvt1.com
.. can you try to update all your dependencies? This has been fixed in the past.
from webdriverio.
@christian-bromann The project where I can reproduce the error looks like this:
{
"name": "test",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"dependencies": {
"@wdio/cli": "^8.35.1"
}
}
If I delete my local node_modules for this project I can run in the following successfully:
npx @puppeteer/browsers install chrome@stable
However, the same command will fail after running an npm install
.
I believe the issue is with using "@puppeteer/browsers": "^1.9.1"
from webdriverio.
At least on my end, the issue seems to be resolved when using wdio/[email protected]
from webdriverio.
Returning to give an update on where things are for me personally in regards to this issue.
After updating all of my WDIO dependencies to the current alpha version available, that is, 9.0.0-alpha.64
, I was able to get Chrome running again with all my tests passing.
Before everything ran clear, the same 404 error was occuring after updating all WDIO based dependencies to the 9.0 alpha version:
ERROR webdriver: Failed downloading chromedriver v123.0.6312.86: Download failed: server returned code 404. URL: https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/123.0.6312.86/win64/chromedriver-win64.zip, retrying ...
But after deleting both my node_modules
folder and my package-lock.json
file and running an npm install to have a fresh modules folder and lock file, everything ran clear.
For the sake of clarity, I'm currently running on Windows 10 Pro Version 22H2, OS Build 19045.4170. My NPM version is 10.5.0 and my Node version is 20.10.0. Here's what my current package file looks like now:
{
"name": "ui-automation-tests",
"version": "1.0.0",
"description": "Automated UI Tests",
"type": "module",
"main": "index.js",
"scripts": {
"test": "wdio run ./configs/wdio.conf.js",
"test:cucumber": "wdio configs/wdio.cucumber.conf.js",
"prettier:write": "prettier . --write"
},
"author": "",
"license": "ISC",
"dependencies": {
"@wdio/cli": "^9.0.0-alpha.64",
"@wdio/devtools-service": "^9.0.0-alpha.64",
"@wdio/local-runner": "^9.0.0-alpha.64",
"@wdio/mocha-framework": "^9.0.0-alpha.64",
"chai": "^5.1.0",
"webdriverio": "^9.0.0-alpha.64"
},
"devDependencies": {
"@wdio/cucumber-framework": "^9.0.0-alpha.64",
"@wdio/spec-reporter": "^9.0.0-alpha.64",
"prettier": "^3.2.5"
}
}
from webdriverio.
Happy to report that Chrome is running now after pruning my package-lock
, node_modules
, then running npm install latest
, with all WDIO related packages still running on 8.35.1
Thanks for all the help everyone!
from webdriverio.
Thanks for confirming.
from webdriverio.
Related Issues (20)
- [π Docs]: } added after method names in INFO panels HOT 4
- [π‘ Feature]: Support for Grid Managed Downloads HOT 2
- BrowserStack build identifier is not set when `BROWSERSTACK_BUILD_NAME` environment variable is set
- [π Bug]: BrowserStack build identifier is not set when BROWSERSTACK_BUILD_NAME environment variable is set HOT 5
- [π‘ Feature]: Timeout for Entirety of WebDriverIO Test Runner Instance HOT 2
- [π Bug]: have a switch to allow offline mode, and donβt check chrome labs when not using chrome HOT 5
- [π Bug]: Cannot command on elements coerced into an array: `Malformed type for "elementId" parameter` HOT 2
- [π Bug]: Is the gitpod environment broken? HOT 2
- [π Bug]: @wdio/junit-reporter - Both Errors and Failures Incremented for Failed Tests HOT 2
- [π Bug]: touchAction exec error ( [email protected] ) HOT 1
- [π Bug]: Chrome temporary profile left on disk HOT 5
- [π Bug]: Mocha Step Definition Timeout HOT 4
- [π Bug]: custom element commands doesn't work with browser runner HOT 7
- [π Bug]: TypeError: Spread syntax requires ...iterable[Symbol.iterator] to be a function HOT 3
- [π‘ Feature]: Centralized context manager for Iframe lookups HOT 1
- [π‘ Feature]: Support configuring NODE_OPTIONS for ChromeDriver separately from NODE_OPTIONS for WDIO itself HOT 5
- [π Bug]: I should be able to chain element using both xpath and css HOT 1
- [π Bug]: "goog:chromeOptions" args and prefs are being ignored? HOT 3
- [π Bug]: <Tough all the test cases of my spec files are passed it shows 1 spec failure in the console log> HOT 4
- [π‘ Feature]: Allow skipping anywhere in test execution HOT 5
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 webdriverio.