Skip to content

Run RSelenium through wdman in parallel #20

@MislavSag

Description

@MislavSag

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()
    })

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions