rstudio / webdriver

WebDriver client in R
https://rstudio.github.io/webdriver/
Other
70 stars 16 forks source link

Seeking example of typical browser (chrome, ffox) use #56

Closed friscodelrosario closed 4 years ago

friscodelrosario commented 4 years ago

Is it a matter of naming browserName in desired capabilities? If so, what's the magic incantation for browser instantiation?

friscodelrosario commented 4 years ago

Yes, it seems like an easy thing, just a different set of browser capabilities when starting the session.

friscodelrosario commented 4 years ago

library(webdriver) library(callr)

args <- c("browserName"="chrome", "start-maximized"=TRUE) p = process$new(command="/usr/local/bin/chromedriver", args) session = Session$new(host="127.0.0.1", port=9515) session$go("http://www.google.com")