ropensci / RSelenium

An R client for Selenium Remote WebDriver
https://docs.ropensci.org/RSelenium
344 stars 81 forks source link

RSelenium behind firewall #202

Open sayac007 opened 5 years ago

sayac007 commented 5 years ago

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!