RSelenium icon indicating copy to clipboard operation
RSelenium copied to clipboard

Proxy authentication with Chrome

Open adam52 opened this issue 7 years ago • 1 comments
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!

adam52 avatar Aug 05 '18 16:08 adam52

maybe related https://www.browserstack.com/guide/set-proxy-in-selenium

bedantaguru avatar Feb 01 '21 11:02 bedantaguru