Comments (13)
@cnishina yeah, you can get a specific Chromedriver version installed by using the --versions.chrome flag. But as @darabos said, Protractor still tries to find and launch the default version as specified by config.json when you run tests using directConnect: true
.
The only way to make Protractor use a different version (without altering the npm-installed config.json) is to set the chromeDriver
setting in the config. But that requires you to specify a full path to the binary, even accounting for platform differences. In essence, you need to have something like this in your Protractor config:
chromeDriver: '../node_modules/protractor/node_modules/webdriver-manager/selenium/chromedriver_2.24' + (process.platform.indexOf('win') === 0 ? '.exe' : '')
(With the .. prefix dependent on where your Protractor config is situated in).
So I don't think this is simply a documentation issue. Shouldn't webdriver-manager abstract away exactly these kinds of details (where to download, filename, etc)?
Maybe it should be possible to specify the versions or a full path to a config file via environment variables? This way you wouldn't need to pass the version through all layers in Protractor or whatever is immediately calling webdriver-manager.
from webdriver-manager.
Works for me in a project generated with Angular CLI 1.0.0 (Using Protractor 5.1.1), and the following npm script:
"e2e": "ng e2e --webdriver-update false",
"pree2e": "webdriver-manager update --versions.chrome=2.28"
from webdriver-manager.
You should use --versions.chrome
or you could override the value in your protractor configuration file. The chromedriver experience that you are facing is probably related to Issue #93. The file name has changed slightly on OSX.
-
If you are using a selenium address in your configuration file, the chromedriver should work.
-
If you are using direct connect, you should run
webdriver-manager update
locally in your project. I like to do this in the package.json "scripts".{ "dependencies": { "protractor": "^4.0.8" }, "scripts": { "pretest": "webdriver-manager update --versions.chrome=2.23" "test": "protractor protractor.conf.js" } }
Hope that helps. Anyway, I agree that we could have better documentation.
from webdriver-manager.
I'm having a similar issue - under the selenium file I only have chomedriver 2.26 I've updated the config.json
to 2.26 and the config.json file under "built" to 2.26 but when I run webdriver-manager start
I see
11:22:43] I/start - java -Dwebdriver.chrome.driver=C:\Users\ross.johnson\AppData\Roaming\npm\node_modules\protractor\node_modules\webdriver-manager\selenium\chromedriver_2.27.exe -Dwe bdriver.gecko.driver=C:\Users\ross.johnson\AppData\Roaming\npm\node_modules\protractor\node_modules\webdriver-manager\selenium\geckodriver-v0.14.0.exe -jar C:\Users\ross.johnson\AppDat a\Roaming\npm\node_modules\protractor\node_modules\webdriver-manager\selenium\selenium-server-standalone-3.1.0.jar -port 4444
the file its point to for chromedriver 2.27 doesnt even exist so I find it strange its still trying to run 2.27 and that there is no error
I've also removed any mention of 2.27 from update-config.json
from webdriver-manager.
Sorry if this is the wrong thread to ask questions. How do I change the webdriver default chrome driver?
I've got 3 different drivers downloaded 2.2, 2.3 and 2.4 but the default is set to 2.2 and I can't seem to be able to figure out how to switch the default driver. Help!
from webdriver-manager.
bump
from webdriver-manager.
@ollisal this has been fixed. directConnect
uses the selenium/update-config.json
file to find the last driver downloaded. The important thing to note is that it is the last one and not the latest file available.
from webdriver-manager.
+1
from webdriver-manager.
+1
from webdriver-manager.
+1
from webdriver-manager.
The documentation exists. Please see: https://github.com/angular/webdriver-manager/blob/master/docs/versions.md
I probably should have closed this issue after I added the versions.md. I am going to close this with cb3b70f. If you believe this is still an issue after reading the documentation, feel free to open a new issue.
from webdriver-manager.
After running Webdiver-manager update --versions.chrome=75.1.0, getting below error
Error code:135
Error msg: Could not find update-config. Json. Run webdriver-manager update to download
Please suggest on this..
from webdriver-manager.
That is as designed, 75.1.0 is not a fully qualified chromedriver version. This documentation was moved to https://github.com/angular/webdriver-manager/blob/legacy/docs/versions.md and the list of chromedrivers that could be downloaded are chromedriver.storage.googleapis.com
You should find something that matches your major version of your Chrome browser version.
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 12
- 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.