正如标题所说,我有一个使用RSelenium编写的脚本,可以使用chrome作为浏览器,实现web导航的自动化。这个脚本已经运行了几个月了,但是今天当我尝试运行它时,我得到了以下消息:
Selenium message:Unable to create new service: ChromeDriverService
Build info: version: '3.14.0', revision: 'aacccce0', time: '2018-08-
02T20:13:22.693Z'
System info: host: 'LAPTOP-22QM8890', ip: '192.168.133.65', os.name:
'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_171'
Driver info: driver.version: unknown
Could not open chrome browser.
Client error message:
Summary: SessionNotCreatedException
Detail: A new session could not be created.
Further Details: run errorDetails method
Check server log for further details.
我很确定我已经安装了Chrome和ChromeDriver的最新版本,但这并没有改变任何东西。我不知道是什么原因导致这个错误在今天突然出现。
发布于 2018-09-20 03:39:50
如果您使用的是windows,只需进入C:\Users\Jeff\AppData\Local\binman并删除其中的所有目录(对于我来说是4个目录,包括seleniumserver和geckodriver)。然后只需打开RStudio并运行
library(RSelenium)
rD <- rsDriver(browser = "chrome")
remDr <- rD$client
remDr$navigate("https://google.com")
祝好运。
https://stackoverflow.com/questions/52394733
复制相似问题