RSelenium 无法打开浏览器 - R

问题描述

我正在尝试使用 RSelenium 打开浏览器,我的代码在 Windows 上运行良好,但在 ubuntu 上无法运行,因为浏览器窗口无法打开。我已尝试使用 firefoxchrome 以及不同的端口。

代码

library(RSelenium)

print("hey1")
rD <- rsDriver(browser="firefox",port=4545L,verbose=F)

print("hey2")
remDr <- rD[["client"]]

# open tab
remDr$open()   # errors here

输出

Selenium message:Process unexpectedly closed with status 1
Build info: version: '4.0.0-alpha-2',revision: 'f148142cf8',time: '2019-07-01T21:30:10'
System info: host: 'PCNAME',ip: '127.0.1.1',os.name: 'Linux',os.arch: 'amd64',os.version: '5.8.0-44-generic',java.version: '14.0.2'
Driver info: driver.version: unkNown
remote stacktrace: 

Could not open firefox browser.
Client error message:
     Summary: UnkNownError
     Detail: An unkNown server-side error occurred while processing the command.
     Further Details: run errorDetails method
Check server log for further details.
[1] "hey2"
[1] "Connecting to Remote Server"

Selenium message:Process unexpectedly closed with status 1
Build info: version: '4.0.0-alpha-2',java.version: '14.0.2'
Driver info: driver.version: unkNown
remote stacktrace: 

Error:   Summary: UnkNownError
     Detail: An unkNown server-side error occurred while processing the command.
     Further Details: run errorDetails method
Execution halted

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)