RSelenium
RSelenium copied to clipboard
Proxy authentication with Chrome
trafficstars
How can i handle username and password authentiaction through RSelenium, when working through a proxy server and Chrome?
This is what I have tried so far, but no luck yet...
## Run the Selenium server
selServ <- wdman::selenium(verbose = TRUE)
## Set browser options
eCaps <- list(chromeOptions = list(
args = c('--disable-notifications',
'--window-size=1280,900',
'--proxy-server=http://ip:port',
'--proxy-auth=username:password',
)))
## Create remote driver
rd <- remoteDriver(port = 4567L,
browserName = "chrome",
extraCapabilities = eCaps)
## Open browser window
rd$open()
## Navigate to page
rd$navigate("https://www.google.com")
Thanks!
maybe related https://www.browserstack.com/guide/set-proxy-in-selenium