2

I would appreciate help with RSelenium (v 2.4.4 downloaded Nov 29, 2014). My first example is copied directly from the thread

# Get Google Chromes Inspect Element into R

library("RSelenium")
checkForServer()
startServer()
remDr <- remoteDriver(remoteServerAddr = "localhost", 
                  port = 4444, 
                  browserName = "firefox"
                  )
 remDr$open()

This results in

 > remDr$open()
  [1] "Connecting to remote server"
 Error:   Summary: UnknownError
      Detail: An unknown server-side error occurred while processing the command.
     class: org.openqa.selenium.WebDriverException

I also drew on the thread

# Using Phantomjs with RSelenium on Windows 7

require(RSelenium)
# devtools::install_github("ropensci/RSelenium") # the latest dev version was installed
psPath <- "C:/Users/BG/Documents/R/win-library/3.1/phantomjs/phantomjs-1.9.8-windows/phantomjs.exe"  # local location of binary
pJS <- phantom(pjs_cmd = psPath)
remDr <- remoteDriver(browserName = "phantomjs")
remDr$open()

This returns

> remDr$open()
[1] "Connecting to remote server"
Error:   Summary: UnknownError
     Detail: An unknown server-side error occurred while processing the command.
     class: java.lang.NoClassDefFoundError

Any help or thoughts would be much appreciated.

Hi: I am appending the requested info.  In re the sync issue, as my snippet indicates I am using the most recent update from github(). Or is there something else I am missing?

> sessionInfo()
R version 3.1.2 (2014-10-31)
Platform: x86_64-w64-mingw32/x64 (64-bit)

locale:
[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252   
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C                          
[5] LC_TIME=English_United States.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] RSelenium_1.3.5 XML_3.98-1.1    RJSONIO_1.3-0   RCurl_1.95-4.3  bitops_1.0-6    nlme_3.1-118   

loaded via a namespace (and not attached):
[1] caTools_1.17.1  grid_3.1.2      lattice_0.20-29 tools_3.1.2    

> system("java -version")
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b18)
Java HotSpot(TM) Client VM (build 25.25-b02, mixed mode, sharing)
 > 
SteveR
  • 61
  • 1
  • 6
  • Can you add the output of sessionInfo(). Also can you give the output of `system("java -version")`. – jdharrison Nov 30 '14 at 12:29
  • Have you tried the [answer](http://stackoverflow.com/questions/25745255/rselenium-error-driver-issues) from jdharrison, it is possibly the "release cycle from selenium and firefox a bit out of sync" – B.Mr.W. Nov 30 '14 at 17:07
  • Please file an issue at https://github.com/ropensci/RSelenium/issues and I will look into it. – jdharrison Dec 03 '14 at 06:54

0 Answers0