简体   繁体   English

RSelenium错误“无法创建新服务:ChromeDriverService”

[英]RSelenium error “Unable to create new service: ChromeDriverService”

Two days ago I was able to use 两天前我可以使用

remDr<-remoteDriver(remoteServerAddr = "localhost", port=4444, browserName = "chrome")
remDr$open()

and proceed to open chrome, navigate to a page and login to it. 并继续打开chrome,导航至页面并登录。

Today, following the same procedure, I got this error 今天,按照相同的步骤,我得到了这个错误

Selenium message:Unable to create new service: ChromeDriverService
Build info: version: '3.6.0', revision: '6fbf3ec767', time: '2017-09-27T16:15:40.131Z'
System info: host: 'ATHENALAP', ip: '*******', os.name: 'Windows 10', os.arch: 'x86', os.version: '10.0', java.version: '1.8.0_151'
Driver info: driver.version: unknown

Error:   Summary: SessionNotCreatedException
     Detail: A new session could not be created.
     Further Details: run errorDetails method

I am using Windows 10. 我正在使用Windows 10。

I have the standalone jar file to a folder with only Latin characters, and I open Windows PowerShell and run 我将独立的jar文件保存到仅包含拉丁字符的文件夹中,然后打开Windows PowerShell并运行

java -jar selenium-server-standalone-3.6.0.jar

command. 命令。 This was mandatory to log in to the page. 这是登录页面所必需的。

Maybe there is a problem with the version of chromedriver? chromedriver版本可能有问题吗? (but still, why did it happen without changing anything?) (但是,为什么它没有更改就发生了?)

Thank you. 谢谢。

Make sure that you have upgraded: 确保您已升级:

  1. Chrome
  2. The Chrome Webdriver Chrome Webdriver
  3. The Selenium Stand Alone Driver 硒独立驱动器

Just wanted to share my recent experience with Chrome web driver. 只想分享我最近使用Chrome网络驱动程序的经验。 I am on Windows 10 and I am using protractor with node.js. 我在Windows 10上,并且正在使用带有pro.protractor的node.js. I ran functional tests seamlessly until got the same error: Unable to create new service: ChromeDriverService 我无缝运行功能测试,直到出现相同的错误: Unable to create new service: ChromeDriverService

After investigation of the issue I found that I have the most recent version of Chrome while chrome web driver is not updated. 对问题进行调查后,我发现我的Chrome版本为最新,而chrome网络驱动程序未更新。 So I ran 所以我跑了

webdriver-manager update --chromedriver

The tests run fine again. 测试再次正常运行。

You probably have a similar command for your environment. 您可能对环境有类似的命令。 I hope it will be helpful. 希望对您有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM