R code previously worked. I believe the issue is because Chrome recently updated (through my organization) and now the versions downloaded by selenium are not the same as the version of chrome I am using. is there a way to back track or download the chrome version I want to use?
Operating System
Windows 10 Pro
Browser version
chrome 109.0.5414.120
Other driver version
chromedriver (download when run rsDriver()) 109.0.5414.25, 109.0.5414.75. 110.0.5481.30
Expected behaviour
run the following code which sets up a driver and opens a chrome browser to scrap data:
driver <- RSelenium::rsDriver(browser = "chrome",
port = netstat::free_port(random = T),
verbose = T,
chromever =
system2(command = "wmic",
args = 'datafile where name="C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe" get Version /value',
stdout = TRUE,
stderr = TRUE) %>%
stringr::str_extract(pattern = "(?<=Version=)\d+\.\d+\.\d+\.") %>%
magrittr::extract(!is.na(.)) %>%
stringr::str_replace_all(pattern = "\.",
replacement = "\\.") %>%
paste0("^", .) %>%
stringr::str_subset(string =
binman::list_versions(appname = "chromedriver") %>%
dplyr::last()) %>%
as.numeric_version() %>%
max() %>%
as.character()
)
Actual behaviour
checking Selenium Server versions:
BEGIN: PREDOWNLOAD
BEGIN: DOWNLOAD
BEGIN: POSTDOWNLOAD
checking chromedriver versions:
BEGIN: PREDOWNLOAD
BEGIN: DOWNLOAD
BEGIN: POSTDOWNLOAD
checking geckodriver versions:
BEGIN: PREDOWNLOAD
BEGIN: DOWNLOAD
BEGIN: POSTDOWNLOAD
checking phantomjs versions:
BEGIN: PREDOWNLOAD
BEGIN: DOWNLOAD
BEGIN: POSTDOWNLOAD
[1] "Connecting to remote server"
Could not open chrome browser.
Client error message:
Undefined error in httr call. httr output: Failed to connect to localhost port 120: Connection refused
Check server log for further details.
Warning message:
In RSelenium::rsDriver(browser = "chrome", port = netstat::free_port(random = T), :
Could not determine server status.
Steps to reproduce the behaviour
Not sure...that's kind of the issue. Just want to confirm that i am right that there are version issues and hoping for direction.
Apologies if this is not the correct format.
R code previously worked. I believe the issue is because Chrome recently updated (through my organization) and now the versions downloaded by selenium are not the same as the version of chrome I am using. is there a way to back track or download the chrome version I want to use?
Operating System
Windows 10 Pro
Browser version
chrome 109.0.5414.120
Other driver version
chromedriver (download when run rsDriver()) 109.0.5414.25, 109.0.5414.75. 110.0.5481.30
Expected behaviour
run the following code which sets up a driver and opens a chrome browser to scrap data: driver <- RSelenium::rsDriver(browser = "chrome", port = netstat::free_port(random = T), verbose = T, chromever = system2(command = "wmic", args = 'datafile where name="C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe" get Version /value', stdout = TRUE, stderr = TRUE) %>% stringr::str_extract(pattern = "(?<=Version=)\d+\.\d+\.\d+\.") %>% magrittr::extract(!is.na(.)) %>% stringr::str_replace_all(pattern = "\.", replacement = "\\.") %>% paste0("^", .) %>% stringr::str_subset(string = binman::list_versions(appname = "chromedriver") %>% dplyr::last()) %>% as.numeric_version() %>% max() %>% as.character() )
Actual behaviour
checking Selenium Server versions: BEGIN: PREDOWNLOAD BEGIN: DOWNLOAD BEGIN: POSTDOWNLOAD checking chromedriver versions: BEGIN: PREDOWNLOAD BEGIN: DOWNLOAD BEGIN: POSTDOWNLOAD checking geckodriver versions: BEGIN: PREDOWNLOAD BEGIN: DOWNLOAD BEGIN: POSTDOWNLOAD checking phantomjs versions: BEGIN: PREDOWNLOAD BEGIN: DOWNLOAD BEGIN: POSTDOWNLOAD [1] "Connecting to remote server" Could not open chrome browser. Client error message: Undefined error in httr call. httr output: Failed to connect to localhost port 120: Connection refused Check server log for further details. Warning message: In RSelenium::rsDriver(browser = "chrome", port = netstat::free_port(random = T), : Could not determine server status.
Steps to reproduce the behaviour
Not sure...that's kind of the issue. Just want to confirm that i am right that there are version issues and hoping for direction.