RSelenium
RSelenium copied to clipboard
Can't start any server.
Hello. I use commands in exactly same way as before:
rS <- rsDriver(browser = "firefox", port = 4564L, version = "3.8.1")
rP <- rsDriver(browser = "phantomjs", port = 4567L)
rG <- rsDriver(browser = "chrome", port = 4568L)
but everytime I change driver or version I got error message and browsing is impossible. I did change anything since it worked few months ago or did I? Can you infer something from these error messages?
Chrome:
Selenium message:unknown error: unable to discover open pages
(Driver info: chromedriver=2.40.565498 (ea082db3280dd6843ebfb08a625e3eb905c4f5ab),platform=Windows NT 6.1.7601 SP1 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 65.10 seconds
Build info: version: '3.13.0', revision: '2f0d292', time: '2018-06-25T15:32:19.891Z'
System info: host: 'MANIFOLD-4', ip: '192.168.184.1', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_171'
Driver info: driver.version: unknown
Error: Summary: UnknownError
Detail: An unknown server-side error occurred while processing the command.
Further Details: run errorDetails method
Firefox:
Selenium message:
Build info: version: '3.8.1', revision: '6e95a6684b', time: '2017-12-01T19:05:32.194Z'
System info: host: 'MANIFOLD-4', ip: '192.168.184.1', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_171'
Driver info: driver.version: unknown
remote stacktrace: WebDriverError@chrome://marionette/content/error.js:227:5
InvalidSessionIDError@chrome://marionette/content/error.js:382:5
assert.that/<@chrome://marionette/content/assert.js:383:13
assert.session@chrome://marionette/content/assert.js:49:3
execute/req<@chrome://marionette/content/server.js:536:9
TaskImpl_run@resource://gre/modules/Task.jsm:331:42
TaskImpl@resource://gre/modules/Task.jsm:280:3
asyncFunction@resource://gre/modules/Task.jsm:252:14
Task_spawn@resource://gre/modules/Task.jsm:166:12
execute@chrome://marionette/content/server.js:529:15
onPacket@chrome://marionette/content/server.js:500:7
_onJSONObjectReady/<@chrome://marionette/content/transport.js:501:9
Error: Summary: NoSuchDriver
Detail: A session is either terminated or not started
Further Details: run errorDetails method
Phantom:
Selenium message:Unable to create session from {
"desiredCapabilities": {
"browserName": "phantomjs",
"javascriptEnabled": true,
"nativeEvents": true,
"version": "",
"platform": "ANY"
},
"capabilities": {
"desiredCapabilities": {
"browserName": "phantomjs",
"version": "",
"javascriptEnabled": true,
"platform": "ANY",
"nativeEvents": true
},
"firstMatch": [
{
"browserName": "phantomjs"
}
]
}
}
Build info: version: '3.13.0', revision: '2f0d292', time: '2018-06-25T15:32:19.891Z'
System info: host: 'MANIFOLD-4', ip: '192.168.184.1', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_171'
Driver info: driver.version: unknown
Error: Summary: SessionNotCreatedException
Detail: A new session could not be created.
Further Details: run errorDetails method
I found my old FF50+ was probably too old to start the server. It worked with new version, thanks to this post:
https://github.com/ropensci/RSelenium/issues/156
However, I'd love to be able to work with my old FF because I have many useful addons which don't work with new versions.