I wan't to use Selenium for webscrapping from R.
- My Windows version: Windows 11, 21H2
- I have the latest Java update. (1.8.0_351) Commenting it since I've seen it could be a fix in this cases.
However, when defining the driver object I get the following error:
Could not open chrome browser. Client error message: Undefined error in httr call. httr output: Failed to connect to localhost port 14415: Connection refused Check server log for further details. Warning message: In rsDriver(browser = "chrome", chromever = "109.0.5414.74", verbose = FALSE, : Could not determine server status. When checking the server log for further details I get:
Could not find or load main class c(-Dwebdriver.chrome.driver=\"C:\\\\Users\\\\xherr\\\\AppData\\\\Local\\\\binman\\\\binman_chromedriver\\\\win32\\\\109.0.5414.74.chromedriver.exe\"," Here's my code:
library(tidyverse) library(RSelenium) library(netstat) library(Rcpp) library(wdman) binman::list_versions("chromedriver") rdriver <- rsDriver(browser = "chrome", chromever = "109.0.5414.74", verbose = TRUE, port = free_port()) rdriver$server$log() Does anyone know how to fix this? Thank you very much