使用RSelenium打开chrome浏览器,获取“无法创建新服务:ChromeDriverService".信息和错误

编程入门 行业动态 更新时间:2024-10-28 12:27:48
本文介绍了使用RSelenium打开chrome浏览器,获取“无法创建新服务:ChromeDriverService".信息和错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

正如标题所述,我有一个使用RSelenium编写的脚本,用于使用chrome作为浏览器来自动进行Web导航.这个脚本已经运行了好几个月了,但是今天当我尝试运行它时,我收到了以下消息:

As the title says, I've got a script written using RSelenium to automate web navigation, using chrome as the browser. This script has worked fine for months now, but today when I tried to run it, I got the following message:

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,但这并没有改变任何内容.我不知道今天是什么原因导致此错误自发出现.

I'm pretty sure that I have installed the latest versions of Chrome and ChromeDriver, but this has not changed anything. I'm at a loss as to what caused this error to spontaneously appear today.

推荐答案

如果使用的是Windows,只需进入C:\ Users \ Jeff \ AppData \ Local \ binman并删除其中的所有目录(对我来说,包括seleniumserver在内的4个目录和geckodriver).然后只需打开RStudio并运行例如

If you are using windows, just go inside C:\Users\Jeff\AppData\Local\binman and delete all directories inside (for me 4 directories including seleniumserver and geckodriver). Then just open RStudio and run eg

library(RSelenium) rD <- rsDriver(browser = "chrome") remDr <- rD$client remDr$navigate("google")

祝你好运.

更多推荐

使用RSelenium打开chrome浏览器,获取“无法创建新服务:ChromeDriverService".信息和错误

本文发布于:2023-11-17 15:48:14,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1610279.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:浏览器   错误   信息   RSelenium   chrome

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!