简体   繁体   中英

RSelenium could not navegate with Chrome

I have problems trying to implement package RSelenium on R . I already begin with the process, I downloaded selenium ( selenium-server-standalone-3.5.3.jar ) and Google Chrome's web driver ( chromedriver.exe ). I also included in the environment variables, in path, the location of both files and a variable to the java location.

Then, I begin whit code:

> require(RSelenium)
> remDr <- remoteDriver(browserName = "chrome")
> remDr$open()

This open the following window:

图像描述入门

Later, when I try navegate some page I obtain the following error:

> remDr$navigate("http://www.la14.com")

Selenium message:unknown error: Runtime.executionContextCreated has invalid 'context': {"auxData":{"frameId":"8112.1","isDefault":true},"id":1,"name":"","origin":"://"}
  (Session info: chrome=60.0.3112.113)
  (Driver info: chromedriver=2.9.248315,platform=Windows NT 6.1 SP1 x86_64)

Error:   Summary: UnknownError
     Detail: An unknown server-side error occurred while processing the command.
     Further Details: run errorDetails method

I don't know if it is related with browser permissions. I will grateful with your help.

Your issue is that your are using a chromedriver that is too old. You are using 2.9 and latest one is 2.32.

Download the latest chromedriver from below link

https://chromedriver.storage.googleapis.com/index.html?path=2.32/

And then replace the old one. This should work

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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