1

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?

1
  • 1
    File an issue on github.com/ropensci/RSelenium . Also wdman uses port 4567L by default so you are not using the server you spawned in your 2nd example. Commented Feb 18, 2017 at 14:56

1 Answer 1

1

This seems to be an issue with the latest version of selenium server (3.1.0). If you try the previous version the error doesn't appear:

rd <-rsDriver(verbose =TRUE, browser = 'phantomjs', version = "3.0.1")

> rd
$client
  browserName                                   id
1   phantomjs 7775b5b8-25de-4699-a171-7fd58c5c5a2a

$server
Process Handle
command   : /tmp/RtmptPZSvk/file2e132997bdf7.sh 
system id : 12240
state     : running

UPDATE:

This is now fixed as of Selenium Server version 3.2.0

Sign up to request clarification or add additional context in comments.

1 Comment

This was an issue with a deprecated method. It should be addressed in future Selenium versions see github.com/SeleniumHQ/selenium/issues/3534

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.