rsDriver() in Rselenium doesn't work

末鹿安然 提交于 2019-12-12 20:01:50

问题


I have updated my r to latest version and I installed Rselenium again.

I try to use rsDriver but it has a problem with port 4567. Same like this

Error trace back:

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.

I don't know what else to try. Is there anything I can do?

if I try to run verbose=false I receive this error:

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

The RSelenium exist in C:\Users\username\Documents\R\win-library\3.4\RSelenium and under this path C:\Users\username\Documents\R\win-library\3.4\wdman\yaml I see the seleniumserver.yml files

What is going wrong? I tried also a past version of R but again the problem is the same.


回答1:


I experienced the same issue and set up the port manually:

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


来源:https://stackoverflow.com/questions/45391609/rsdriver-in-rselenium-doesnt-work

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!