Home > Net >  RSelenium::rsDriver could not open chrome browser
RSelenium::rsDriver could not open chrome browser

Time:11-12

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.

CodePudding user response:

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.

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.

Solution

Ensure that JAVA / JDK is upgraded to current levels JDK 8u311.

CodePudding user response:

Next to the old Java version - which I updated -, the port was the problem: Driver info: driver.version: unknown

I ran ChromeDriver and look up the Port in the Terminal, which was a different one.

Thanks for the help!

  • Related