update protractor chrome driver to 74

随声附和 提交于 2019-12-05 19:45:31

I found a working solution for protractor 5.4.2. You need to install webdriver-manager v12.1.3 and run npm dedupe. Then run webdriver-manager update --versions.chrome=2.46. In my case it didn't work because of webdriver-manager 12.1.1 installed selenium-server-standalone-4.0.0-alpha-1.zip.jar (this version only works with protractor 6.0.0) instead of selenium-server-standalone-3.141.59.jar.

Old answer

Only way I found to start it now (30.04.2019) is to start webdriver-manager separately and connect to its instance. It works with protractor v6.0.0 and webdriver-manager v12.1.3.

add this to protractor.conf.js:

exports.config = {
// ...
seleniumAddress: 'http://localhost:4444/wd/hub',
// ...
}

then run webdriver-manager start and in another tab protractor protractor.conf.js

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!