Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run RSelenium through wdman in parallel #20

Open
MislavSag opened this issue Aug 30, 2018 · 0 comments
Open

Run RSelenium through wdman in parallel #20

MislavSag opened this issue Aug 30, 2018 · 0 comments
Assignees

Comments

@MislavSag
Copy link

Operating System

Windows

Please describe Expected behaviour

parallel execution

Please describe Actual behaviour

one sequential execution

Steps to reproduce the behaviour

parallelize

Hi,

I would like to know is it possible to ran RSelenium via wdman in parallel.

For example, usual way to run phantom through wdman:

pjs <- wdman::phantomjs()
remDr <- remoteDriver(browserName = "phantomjs", port = 4567L)
remDr$open()
....
....

Is it possible to runa code in parallel in a way that I can have multiple tests?
For example something like:

(cl <- (detectCores() - 1) %>%  makeCluster) %>% registerDoParallel

    clusterEvalQ(cl, {
    library(RSelenium)
    library(XML)
    library(rvest)
    library(imager)
    library(reticulate)
    
    remDr <- remoteDriver(remoteServerAddr = "xxxxx", port = xxxxL,
                          browserName = "firefox")
    remDr$open()
    })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants