RSelenium::rsDriver 无法打开 chrome 浏览器

RSelenium::rsDriver could not open chrome browser

我正在尝试 运行 此代码:

client_server <- RSelenium::rsDriver(browser=c("chrome"), 
                                 chromever="latest", 
                                 port=4444L, 
                                 verbose=F)

但是,我得到这个错误:

Selenium message:Timed out waiting for driver server to start.
Build info: version: '4.0.0-alpha-2', revision: 'f148142cf8', time: '2019-07-01T21:30:10'
System info: host: 'XXX.local', ip: 'XXX', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.16', java.version: '1.8.0_31'
Driver info: driver.version: unknown

Could not open chrome 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.

我完全不知道这里的解决方案是什么。我尝试了不同的端口,但似乎并没有解决问题。

这个错误信息...

Selenium message:Timed out waiting for driver server to start.
Build info: version: '4.0.0-alpha-2', revision: 'f148142cf8', time: '2019-07-01T21:30:10'
System info: host: 'XXX.local', ip: 'XXX', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.16', java.version: '1.8.0_31'
Driver info: driver.version: unknown

...意味着 服务器 process/service 没有得到 started/initiated.

您的主要问题是您使用的二进制文件版本之间不兼容


尽管您使用的是 Selenium 构建信息:版本:'4.0.0-alpha-2' 但是您的 java.version: '1.8.0_31'oldancient.

解决方案

确保 JAVA / JDK 升级到当前级别 JDK 8u311