简体   繁体   English

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

[英]RSelenium::rsDriver could not open chrome browser

I am trying to run this code:我正在尝试运行此代码:

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

But, I get this Error:但是,我收到此错误:

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.

I am quite clueless what the solution is here.我很不知道这里的解决方案是什么。 I tried different ports, that does not seem to solve the problem.我尝试了不同的端口,这似乎不能解决问题。

This error message...这个错误信息...

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

...implies that the ChromeDriver server process/service didn't get started/initiated. ...暗示ChromeDriver服务器进程/服务没有启动/启动。

Your main issue is the incompatibility between the version of the binaries you are using.您的主要问题是您使用的二进制文件版本之间的不兼容


Though you are using Selenium Build info: version: '4.0.0-alpha-2' but your java.version: '1.8.0_31' is old and ancient .尽管您使用的是 Selenium Build info: version: '4.0.0-alpha-2'但您的java.version: '1.8.0_31'旧的古老的

Solution解决方案

Ensure that JAVA / JDK is upgraded to current levels JDK 8u311 .确保JAVA / JDK升级到当前级别JDK 8u311

Next to the old Java version - which I updated -, the port was the problem: Driver info: driver.version: unknown在我更新的旧 Java 版本旁边,端口是问题所在: Driver info: driver.version: unknown

I ran ChromeDriver and look up the Port in the Terminal, which was a different one.我运行 ChromeDriver 并在终端中查找端口,这是一个不同的端口。

Thanks for the help!谢谢您的帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM