RSelenium error driver issues?

h.l.m

When trying to run the RSelenium examples to try and carry out some webscraping I get the following error message when trying to open up the server...I'm not sure what the issue is...

library(RSelenium)
startServer()

# use default server initialisation values
remDr <- remoteDriver$new()

# send request to server to initialise session
remDr$open()

[1] "Connecting to remote server"
$message
[1] "GET /session/\nBuild info: version: '2.42.0', revision: '5e82430', time: '2014-05-22 20:18:07'\nSystem info: host: 'xxxxx-PC', ip: 'xx.xxx.xx.xx', os.name: 'Windows 8.1', os.arch: 'amd64', os.version: '6.3', java.version: '1.7.0_60'\nDriver info: driver.version: unknown"

$localizedMessage
[1] "GET /session/\nBuild info: version: '2.42.0', revision: '5e82430', time: '2014-05-22 20:18:07'\nSystem info: host: 'xxxx-PC', ip: 'xx.xxx.xx.xx', os.name: 'Windows 8.1', os.arch: 'amd64', os.version: '6.3', java.version: '1.7.0_60'\nDriver info: driver.version: unknown"

$suppressed
list()

$cause
NULL

$systemInformation
[1] "System info: host: 'xxxxx-PC', ip: 'xx.xx.xx.xx', os.name: 'Windows 8.1', os.arch: 'amd64', os.version: '6.3', java.version: '1.7.0_60'"

$supportUrl
NULL

$class
[1] "org.openqa.selenium.UnsupportedCommandException"

$additionalInformation
[1] "\nDriver info: driver.version: unknown"

$hCode
[1] 142976762

Then there are some stackTrace info, all of which are NULL

Any ideas on how to solve this issue?

Also when trying to run a demo I get the following issue...(but think its because RSelenium::startServer() wasnt run first)

> demo(selExecJSexample)


demo(selExecJSexample)
---- ~~~~~~~~~~~~~~~~

  Type  <Return>     to start : 

  > # see http://stackoverflow.com/questions/22121006/how-to-scrape-this-squawka-page/22127054#22127054
  > # RSelenium::startServer() # if needed
  > require(RSelenium)

> remDr <- remoteDriver()

> remDr$open()
[1] "Connecting to remote server"
Error in function (type, msg, asError = TRUE)  : couldn't connect to host
jdharrison

This was an issue with the selenium release cycle being slightly out of sync with the firefox release cycle. http://selenium-release.storage.googleapis.com/index.html now contains an updated Selenium Server (currently version 2.43.0). Running RSelenium::checkForServer with update = TRUE will update the Selenium Server locally and the most recent firefox should function:

> library(RSelenium)
> checkForServer(update = TRUE)
[1] "DOWNLOADING STANDALONE SELENIUM SERVER. THIS MAY TAKE SEVERAL MINUTES"
trying URL 'http://selenium-release.storage.googleapis.com/2.43/selenium-server-standalone-2.43.0.jar'
Content type 'application/x-java-archive' length 34932130 bytes (33.3 Mb)
opened URL
downloaded 33.3 Mb

> remDr <- remoteDriver()
> startServer()
> remDr$open()
[1] "Connecting to remote server"
$platform
[1] "WINDOWS"

$acceptSslCerts
[1] TRUE

$javascriptEnabled
[1] TRUE

$browserName
[1] "firefox"

$rotatable
[1] FALSE

$locationContextEnabled
[1] TRUE

$webdriver.remote.sessionid
[1] "a2eee1ff-d9fd-41ce-ac0e-e11ce24cb516"

$version
[1] "32.0"

$cssSelectorsEnabled
[1] TRUE

$databaseEnabled
[1] TRUE

$handlesAlerts
[1] TRUE

$webStorageEnabled
[1] TRUE

$nativeEvents
[1] TRUE

$applicationCacheEnabled
[1] TRUE

$takesScreenshot
[1] TRUE

$id
[1] "a2eee1ff-d9fd-41ce-ac0e-e11ce24cb516"

Running remDr$getStatus() should show everything is uptodate:

> remDr$getStatus()
$os
$os$arch
[1] "amd64"

$os$name
[1] "Windows 8.1"

$os$version
[1] "6.3"


$java
$java$version
[1] "1.7.0_67"


$build
$build$revision
[1] "597b76b"

$build$time
[1] "2014-09-09 20:52:14"

$build$version
[1] "2.43.0"

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

TOP Ranking

  1. 1

    Failed to listen on localhost:8000 (reason: Cannot assign requested address)

  2. 2

    Loopback Error: connect ECONNREFUSED 127.0.0.1:3306 (MAMP)

  3. 3

    How to import an asset in swift using Bundle.main.path() in a react-native native module

  4. 4

    pump.io port in URL

  5. 5

    Compiler error CS0246 (type or namespace not found) on using Ninject in ASP.NET vNext

  6. 6

    BigQuery - concatenate ignoring NULL

  7. 7

    ngClass error (Can't bind ngClass since it isn't a known property of div) in Angular 11.0.3

  8. 8

    ggplotly no applicable method for 'plotly_build' applied to an object of class "NULL" if statements

  9. 9

    Spring Boot JPA PostgreSQL Web App - Internal Authentication Error

  10. 10

    How to remove the extra space from right in a webview?

  11. 11

    java.lang.NullPointerException: Cannot read the array length because "<local3>" is null

  12. 12

    Jquery different data trapped from direct mousedown event and simulation via $(this).trigger('mousedown');

  13. 13

    flutter: dropdown item programmatically unselect problem

  14. 14

    How to use merge windows unallocated space into Ubuntu using GParted?

  15. 15

    Change dd-mm-yyyy date format of dataframe date column to yyyy-mm-dd

  16. 16

    Nuget add packages gives access denied errors

  17. 17

    Svchost high CPU from Microsoft.BingWeather app errors

  18. 18

    Can't pre-populate phone number and message body in SMS link on iPhones when SMS app is not running in the background

  19. 19

    12.04.3--- Dconf Editor won't show com>canonical>unity option

  20. 20

    Any way to remove trailing whitespace *FOR EDITED* lines in Eclipse [for Java]?

  21. 21

    maven-jaxb2-plugin cannot generate classes due to two declarations cause a collision in ObjectFactory class

HotTag

Archive