RSelenium
RSelenium copied to clipboard
SessionNotCreatedException, using iedrver="3.9.0" or iedrver="latest"
I played around wir RSelenium and found a successful way to handle it with internet explorer (firefox gave error on client close and chrome closes after window open with error). Yesterday everything was fine with the following line:
rsDriver(port=1115L, browser="internet explorer", iedrver="latest",
+ chromever=NULL, geckover=NULL, phantomver=NULL, verbose=FALSE,
+ check=FALSE)
but today it brought an error message. After googling around, I typed binman::list_versions("iedriverserver") which gave me 3.6.0, 3.7.0, 3.8.0 and 3.9.0. I tried 3.8.0 and there was no more error and the browser window opened.
Operating System
Windows 7, 64bit
Selenium Server version (selenium-server-standalone-3.0.1.jar etc.)
package version: RSelenium_1.7.1
Browser version (firefox 50.1.0, chrome 54.0.2840.100 (64-bit) etc.)
Internet Explorer 11.9.9600.18893, 64bit
Other driver version (chromedriver 2.27, geckodriver v0.11.1, iedriver x64_3.0.0, PhantomJS 2.1.1 etc.)
IEDriver 3.8.0 is working, 3.9.0 is not
Expected behaviour
start selenium server and open a browser window
Actual behaviour
selenium server did not start (no return value) and no browser window open, but error message:
Selenium message:Unable to create session from org.openqa.selenium.remote.NewSessionPayload@437d37e9
Build info: version: '3.9.0', revision: '698b3178f0', time: '2018-02-05T14:56:13.134Z'
System info: host: '<hostname>', ip: '10.101.14.27', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_161'
Driver info: driver.version: unknown
Error: Summary: SessionNotCreatedException Detail: A new session could not be created. Further Details: run errorDetails method
Steps to reproduce the behaviour
rsDriver(port=1115L, browser="internet explorer", iedrver="3.9.0",
+ chromever=NULL, geckover=NULL, phantomver=NULL, verbose=FALSE,
+ check=FALSE)
or
rsDriver(port=1115L, browser="internet explorer", iedrver="latest",
+ chromever=NULL, geckover=NULL, phantomver=NULL, verbose=FALSE,
+ check=FALSE)
or simply
rsDriver(port=1115L, browser="internet explorer", iedrver="latest")
I think it can be caused by moving to Okhttp and removing -enablePassThrough parameter in 3.9.0. https://github.com/SeleniumHQ/selenium/blob/master/java/CHANGELOG
https://stackoverflow.com/questions/48682811/enablepassthrough-not-available-for-selenium-server-3-9-1
I have the same problem with Internet Explorer launch through GRID, but didn't find fix yet