Selenium server error: Unable to create new service chromedriverservice

白昼怎懂夜的黑 提交于 2019-11-28 13:55:21

The error you are seeing does gives us some hint about whats going wrong as follows :

   { type: 'SessionNotCreatedException',
     message: 'A new session could not be created.',
     orgStatusMessage: 'Unable to create new service: ChromeDriverService\nBuild info: version: \'3.5.3\', revision: \'a88d25fe6b\', time: \'2017-08-29T12:54:15.039Z\'\nSystem info: host: \'LAPTOP-9GIHGJ9I\', ip: \'10.0.0.243\', os.name: \'Windows 10\', os.arch: \'amd64\', os.version: \'10.0\', java.version: \'1.8.0_161\'\nDriver info: driver.version: unknown' }

It is clear from the error message that the ChromeDriver is not getting detected as you see the log message as Driver info: driver.version: unknown. The main reason of this error can be the incompatibility between the binaries you are using.

  • Your Selenium Client version is 3.5.3 released 2017-08-29T12:54:15.039Z
  • Your ChromeDriver version is unknown to us.
  • Your Chrome Browser version is unknown to us.

Solution

A quick solution would be to :

  • Update Selenium Client version to recent levels i.e. Selenium 3.9.1
  • Update ChromeDriver version to recent levels i.e. ChromeDriver 2.35
  • As per the Release Notes of ChromeDriver v2.35 update the Chrome Browser version to v62-64
  • Run CCleaner tool to wipe off the OS chores before and after executing your Test Suite
  • If your base version of Chrome Browser is olden uninstall Chrome Browser through Revo Uninstaller and install a recent GA released version of Chrome Browser
  • Execute your Test.
Kyle Kohler

Update your ChromeDriver version via webdriver-manager, as follows:

webdriver-manager clean
webdriver-manager update
webdriver-manager start

This will remove the older version, update with the latest stated in your built config, and restart the server. Hope this helps.

Selenium Standalone Server is currently on Build 3.9.1.

It looks like you're running an older version of the standalone server. Perhaps the ChromeDriver version you're running might function better with an update to your Selenium Standalone Server?

http://www.seleniumhq.org/download/

Also, just to be sure... You have the latest version of the Windows Chrome Driver version? They're on 2.35 for the latest. https://chromedriver.storage.googleapis.com/index.html?path=2.35/

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