2017-09-01 59 views
1

当我尝试对chrome运行量角器测试时出现以下错误。可执行文件的量角器 - 会话没有创建异常

session not created exception: Chrome version must be >= 59.0.3071.0

[11:42:23] E/launcher - session not created exception: Chrome version must be >= 59.0.3071.0 (Driver info: chromedriver=2.32.498550 (9dec58e66c31bcc53a9ce3c7226f0c1c5810906a),platform=Windows NT 6.1.7601 SP1 x86_64) (WARNING: The server did not provide 
 
any stacktrace information) Command duration or timeout: 6.44 seconds Build info: version: '3.5.3', revision: 'a88d25fe6b', time: '2017-08-29T12:54:15.039Z' System info: host: 'PC328569', ip: '10.25.227.179', os.name: 'Windows 7', os.arch: 'amd64', os.version: 
 
'6.1', java.version: '1.8.0_121' Driver info: driver.version: unknown [11:42:23] E/launcher - SessionNotCreatedError: session not created exception: Chrome version must be >= 59.0.3071.0 (Driver info: chromedriver=2.32.498550 (9dec58e66c31bcc53a9ce3c7226f0c1c5810906a),platform=Windows 
 
NT 6.1.7601 SP1 x86_64) (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 6.44 seconds Build info: version: '3.5.3', revision: 'a88d25fe6b', time: '2017-08-29T12:54:15.039Z' System info: host: 'PC328569', ip: 
 
'10.25.227.179', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_121' Driver info: driver.version: unknown at WebDriverError (D:\Balachander\DailyScript\node_modules\selenium-webdriver\lib\error.js:27:5) at SessionNotCreatedError 
 
(D:\Balachander\DailyScript\node_modules\selenium-webdriver\lib\error.js:214:5) at Object.checkLegacyResponse (D:\Balachander\DailyScript\node_modules\selenium-webdriver\lib\error.js:505:15) at parseHttpResponse (D:\Balachander\DailyScript\node_modules\selenium-webdriver\lib\http.js:509:13) 
 
at doSend.then.response (D:\Balachander\DailyScript\node_modules\selenium-webdriver\lib\http.js:440:13) at process._tickCallback (internal/process/next_tick.js:103:7) From: Task: WebDriver.createSession() at Function.createSession (D:\Balachander\DailyScript\node_modules\selenium-webdriver\lib\webdriver.js:777:24) 
 
at Function.createSession (D:\Balachander\DailyScript\node_modules\selenium-webdriver\chrome.js:709:29) at createDriver (D:\Balachander\DailyScript\node_modules\selenium-webdriver\index.js:167:33) at Builder.build (D:\Balachander\DailyScript\node_modules\selenium-webdriver\index.js:623:16) 
 
at Hosted.getNewDriver (D:\Balachander\DailyScript\node_modules\protractor\lib\driverProviders\driverProvider.ts:60:29) at Runner.createBrowser (D:\Balachander\DailyScript\node_modules\protractor\lib\runner.ts:225:39) at q.then.then (D:\Balachander\DailyScript\node_modules\protractor\lib\runner.ts:391:27) 
 
at _fulfilled (D:\Balachander\DailyScript\node_modules\q\q.js:834:54) at self.promiseDispatch.done (D:\Balachander\DailyScript\node_modules\q\q.js:863:30) at Promise.promise.promiseDispatch (D:\Balachander\DailyScript\node_modules\q\q.js:796:13) [11:42:23] 
 
E/launcher - Process exited with error code 199

版本中使用: webdriver的经理 - 12.0.6 量角器 - 5.1.2 铬司机 - 2.32 爪哇 - 1.8

我曾尝试: 1.Updating的webdriver的到最新版本 NPM更新-g量角器 webdriver的经理更新

2.Editing量角器的配置文件:node_modules /量角器/ config.json 改变铬司机版本以任何你需要的。例如。 “chromedriver”:“2.24”。运行webdriver-manager更新。 但由于某种原因,webdriver-manager总是使用chrome驱动程序2.32。

赞赏任何帮助或建议。谢谢。

回答

0

根据以下引用,您需要更新您的实际安装的镶边。

更新由铬 - 关于谷歌浏览器

菜单 - >帮助 - >

参见: -

https://github.com/appveyor/ci/issues/1600

Chromedriver error "Chrome version must be >= 52" using Nightwatch

希望它会帮助你:)

+0

非常感谢建议。将尝试并让你知道。 – barat21

+0

任何成功?在这里有相同的问题 – Nicholas

+0

我已经使用了Tiago Garcia的答案https://stackoverflow.com/questions/39541739/chromedriver-error-chrome-version-must-be-52-using-nightwatch并能够更新Chrome以这种方式更新版本 – Nicholas