I'm trying to run RSelenium using the WDMAN package.
library(RSelenium)
library(wdman)
rd <-rsDriver(verbose =TRUE, browser = 'phantomjs')
This gives me an error:
[1] "Connecting to remote server"
Selenium message:org.openqa.selenium.os.CommandLine.find(Ljava/lang/String;)Ljava/lang/String;
Error: Summary: UnknownError
Detail: An unknown server-side error occurred while processing the command.
class: java.lang.NoSuchMethodError
Further Details: run errorDetails method
I'm running LinuxMint 18.1.
If I run the server with the following it works:
library(RSelenium)
library(wdman)
selServ <- wdman::selenium(verbose = FALSE)
eCap <- list(phantomjs.page.settings.userAgent
= "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20120101 Firefox/29.0")
remDr <- remoteDriver(remoteServerAddr = "localhost"
, port = 4444L
, browserName = "phantomjs"
, extraCapabilities = eCap
)
remDr$open()
I'd rather use rsDriver as it checks for updates. Why is this failing?