RSelenium
RSelenium copied to clipboard
RSelenium and auto proxy
http://rpubs.com/johndharrison/RSelenium-Docker
Greetings, I am trying to download a ScienceDirect article through RSelenium.
Operating System
Ubuntu 16.04.4 LTS
Selenium Server version (selenium-server-standalone-3.0.1.jar etc.)
docker run -d -p 4445:4444 selenium/standalone-firefox:2.53.0
Browser version (firefox 50.1.0, chrome 54.0.2840.100 (64-bit) etc.)
firefox "45.0.2"
Expected behaviour
Given that the autoproxy settings work I believe on the screenshot I should see a Download button in the upper left corner.
Actual behaviour
I see a Purchase button instead of the Download PDF button. When I actually open in the browser I see a Download PDF button.
Steps to reproduce the behaviour
I am in the University network whilst trying this so it not as straightforward to replicate when outside the network, but I am hoping that there is an obvious mistake I am making that is apparent from the code itself.
firefox_profile.me <- makeFirefoxProfile(list(marionette = TRUE, webdriver_accept_untrusted_certs = TRUE,
webdriver_assume_untrusted_issuer = TRUE,
network.proxy.socks = "http://pac.lrz.de/",
network.proxy.type = 2L))
remDr <- remoteDriver(port = 4445L, browserName = "firefox", extraCapabilities = firefox_profile.me)
remDr$open(silent = FALSE)
remDr$navigate("https://www.sciencedirect.com/science/article/pii/S0010027718300441")
remDr$screenshot(display = TRUE)
Same problem when I try
firefox_profile.me <- makeFirefoxProfile(list(marionette = TRUE,
network.proxy.autoconfig_url = "http://pac.lrz.de/",
network.proxy.type = 2))