问题
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