I am attempting to run RSelenium behind my company's proxy and can connect successfully via GET requests, but I am unable to properly run the rsDriver() function.
set_config(use_proxy(url = "proxy.company.com",
port = 80,
username = "greg",
password = "password"))
Upon doing this, I am successfully able to run a GET request, which I am unable to perform without using setconfig:
> GET("http://google.com")
Response [http://www.google.com/]
Date: 2021-02-09 18:30
Status: 200
I try using rsDriver and get a connection issue with either Chrome or Firefox:
cprof <- list(chromeOptions =
list(args = list("--proxy-server=proxy.company.com")))
driver <- rsDriver(browser = c("chrome"), extraCapabilities = cprof)
checking Selenium Server versions: BEGIN: PREDOWNLOAD Error in open.connection(con, "rb") : Timeout was reached: [www.googleapis.com] Operation timed out after 10014 milliseconds with 0 out of 0 bytes received
I alternatively try to run with a Docker client, and I get a strange message after trying to connect:
> remDr <- remoteDriver(remoteServerAddr = "127.0.0.1", port = 444L)
> remDr$open()
[1] "Connecting to remote server"
$id
[1] NA
I am puzzled as to why I cannot get this to work, no matter what I try. Any guidance would be life saving.
THANK YOU