Selenium server error: Unable to create new service chromedriverservice

后端 未结 5 1414
遥遥无期
遥遥无期 2021-01-18 02:33

I am trying to run webdriverio on my windows 10 computer and keep running into the same issue when trying to run my test js file. So I run this -jar /your/download/dir

5条回答
  •  太阳男子
    2021-01-18 03:02

    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.

提交回复
热议问题