RSelenium icon indicating copy to clipboard operation
RSelenium copied to clipboard

RSelenium behind firewall

Open sayac007 opened this issue 5 years ago • 0 comments

Hello, I am trying to run RSelenium under firewall. I successfully installed the libraries:

library(httr) set_config(use_proxy(url="proxy", port=port, username="user",password="password")) devtools::install_github("johndharrison/binman") devtools::install_github("johndharrison/wdman") devtools::install_github("ropensci/RSelenium")

Then I run the code:

library(RSelenium) cprof <- getChromeProfile("C:/Users/user/AppData/Local/Google/Chrome/User Data/","Default") driver <- rsDriver(verbose=F,extraCapabilities=cprof)

and get the error message: Error: ymldata does not have one of name,predlfunction,dlfunction,postdlfunction as required by specification.

On another computer, I get another yaml related error message (Error in yaml.load(readLines(con), error.label = error.label, ...) : argument "error.label" is missing, with no default)

I tried to set the proxy parameter using Sys.setenv and cprof <- list(chromeOptions = (args = list("--proxy-server=proxy:port"))) - with no effect

Any ideas? Thanks a lot in advance!

sayac007 avatar Feb 27 '19 07:02 sayac007