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