使用WDIO做E2E测试遇ChromeDriver版本兼容问题求助
WDIO E2E测试ChromeDriver版本不匹配问题求助
我在用WDIO执行E2E测试时遇到异常:明明本地ChromeDriver版本是106,但报错提示当前使用的ChromeDriver仅支持Chrome 104版本,而我的Chrome浏览器版本是106.0.5249.119。
错误日志如下:
[0-1] 2022-10-24T10:58:18.928Z ERROR webdriver: Request failed with status 500 due to session not created: session not created: This version of ChromeDriver only supports Chrome version 104 [0-1] Current browser version is 106.0.5249.119 with binary path /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
本地终端查询ChromeDriver版本结果:
chromedriver -v ChromeDriver 106.0.5249.61 (511755355844955cd3e264779baf0dd38212a4d0-refs/branch-heads/5249@{#569})
我已经尝试过相关常规解决方案,但问题依旧。附上我的WDIO配置文件:
module.exports.config = { runner: "local", path: "/wd/hub", specs: ["./test/specs/*.js"], maxInstances: 1, capabilities: [ { pageLoadStrategy: "none", maxInstances: 1, // browserName: "chrome", "goog:chromeOptions": { excludeSwitches: ["enable-automation"], }, }, ], logLevel: "warn", bail: 0, baseUrl: "http://localhost:3333", waitforTimeout: 10000, connectionRetryTimeout: 90000, connectionRetryCount: 3, services: ["chromedriver"], framework: "mocha", reporters: ["spec"], }
内容的提问来源于stack exchange,提问作者Riddle
相关产品推荐
相关产品推荐

