RSelenium 浏览器无法打开

问题描述 投票:0回答:1

我正在 R 中运行 RSelenium 浏览器。我为它编写的代码一直工作得很好,直到我昨天尝试运行它。现在,当我尝试使用

rd = rsDriver()
启动浏览器时,我收到以下消息:

>checking Selenium Server versions:
> 
> BEGIN: PREDOWNLOAD
> 
> BEGIN: DOWNLOAD
> 
> BEGIN: POSTDOWNLOAD
> 
> checking chromedriver versions:
> 
> BEGIN: PREDOWNLOAD
> 
> BEGIN: DOWNLOAD
> 
> BEGIN: POSTDOWNLOAD
> 
> checking geckodriver versions:
> 
> BEGIN: PREDOWNLOAD
> 
> BEGIN: DOWNLOAD
> 
> BEGIN: POSTDOWNLOAD
> 
> checking phantomjs versions:
> 
> BEGIN: PREDOWNLOAD
> 
> BEGIN: DOWNLOAD
> 
> BEGIN: POSTDOWNLOAD
> 
> [1] "Connecting to remote server"
> 
> Could not open chrome browser.
> 
> Client error message:
> 
> Undefined error in httr call. httr output: Failed to connect to
> localhost port 4567: Connection refused
> 
> Check server log for further details.
> 
> $client
> 
> [1] "No sessionInfo. Client browser is mostly likely not opened."
> 
> $server
> 
> Process Handle command   : C:\Users\Jeffrey
> Jones\AppData\Local\Temp\RtmpszSD5f\file2958371c4c79.bat 
> 
> system id : 14508
> 
> state     : exited
> 
> Warning message:
> 
> In rsDriver() : Could not determine server status.
> 

然后其他方法都不起作用。我不明白,因为代码两天前工作正常。任何帮助将不胜感激!谢谢!

r rselenium
1个回答
0
投票

安德鲁, 我这样做了: “我认为是 Java 需要防火墙访问,而不是 RStudio”

没用。

我该如何执行此操作:“我已手动运行批处理脚本并接受所有防火墙警告。”

有什么建议吗?

© www.soinside.com 2019 - 2024. All rights reserved.