Rselenium中的rsDriver()不起作用

时间:2017-07-29 16:34:41

标签: rselenium

我已将r更新为最新版本,我再次安装了Rselenium。

我尝试使用rsDriver但是端口4567有问题。与this

相同

追溯错误:

rd <-rsDriver(verbose =TRUE, browser = 'phantomjs', version = "3.4.0")
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
Error in wdman::selenium(port = port, verbose = verbose, version = version,  : 
  Selenium server signals port = 4567 is already in use.

我不知道还有什么可以尝试的。我有什么可以做的吗?

如果我尝试运行verbose = false,我收到此错误:

Selenium message:The driver executable does not exist: C:\Users\username\Documents

Error:   Summary: UnknownError
     Detail: An unknown server-side error occurred while processing the command.
     class: java.lang.IllegalStateException
     Further Details: run errorDetails method

RSelenium存在于C:\Users\username\Documents\R\win-library\3.4\RSelenium 在这条路径下C:\Users\username\Documents\R\win-library\3.4\wdman\yaml我看到了seleniumserver.yml文件

出了什么问题?我也尝试了R的过去版本,但问题也是一样。

1 个答案:

答案 0 :(得分:0)

我遇到了同样的问题,并手动设置了端口:

rd = rsDriver(port = 4567L, browser = "chrome", version = "latest", chromever = "latest")