ropensci / RSelenium

An R client for Selenium Remote WebDriver
https://docs.ropensci.org/RSelenium
341 stars 81 forks source link

RSelenium - localhost port xxxx: Connection refused - Chrome #267

Closed mapdek closed 1 year ago

mapdek commented 1 year ago

Operating System

OS

I am trying to open a Google Chrome internet brwoser using RSelenium with this code:

library(wdman)
library(RSelenium)
selServ <- selenium(port = 4583L, version = "3.141.59", chromever = "109.0.5414.74", geckover = "latest")
remDr <- remoteDriver(port = 4583L, browserName = "chrome")
remDr$open()

When the following error message comes up:

image

Using these 4 lines of code, the following message comes up:

binman::rm_platform("phantomjs")
wdman::selenium(retcommand = TRUE)
selServ <- wdman::selenium(verbose = FALSE)
selServ$log()

image

The Google Browser I use, has this version number:

image

And this is the folder where the chrome drivers seem to be stored (where there is version '110.0.5481.30' and '109.0.5414.74'):

image

I tried the following without success:

mapdek commented 1 year ago

Issue solved by removing the Chrome License manually, see this issue: https://github.com/ropensci/RSelenium/issues/264