Running RSelenium with Opera Running RSelenium with Opera selenium selenium

Running RSelenium with Opera


I found a work-around that works.

I first called:

selCommand=wdman::selenium(jvmargs = c("Dwebdriver.chrome.verboseLogging=true"), retcommand = TRUE)cat(selCommand)

This gave me the path of the chromedriver.exe used by rsDriver (in my case C:\Users\User\AppData\Local\binman\binman_chromedriver\win32\87.0.4280.20\chromedriver.exe). Next, I downloaded the operadriver.exe from https://github.com/operasoftware/operachromiumdriver/releas and copied it into this folder. Afterwards, I deleted the original chromedriver.exe and renamed the operadriver.exe into chromedriver.exe. Then I called:

rD=rsDriver(browser = c("chrome"))remDr=remoteDriver(remoteServerAddr = "localhost", port = 4567L, browserName = "chrome")remDr=rD$client

And it indeed it works as expected! Does someone has a more convenient method?


[ Download the opera driver and Opera ]

The download process also can be automated (however not posting it here)

Then

se <- wdman::selenium(  check = FALSE,  jvmargs = list(    opera =      paste0(        "-Dwebdriver.opera.driver=",        normalizePath(          "<give correct path>/operadriver.exe"        )      )  ))rd <- RSelenium::remoteDriver(browserName = "opera", port = 4567L)rd$open()