Closed
Bug 1486620
Opened 6 years ago
Closed 6 years ago
GeckoDriver + selenium gives error org.openqa.selenium.WebDriverException: Session [null] not available and is not among the last 1000 terminated sessions
Categories
(Testing :: geckodriver, defect)
Tracking
(Not tracked)
RESOLVED
INCOMPLETE
People
(Reporter: seleniumfirefox18, Unassigned, NeedInfo)
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36 Steps to reproduce: I was trying to run selenium tests using GeckoDriver (version 21) on firefox (version 61). AS soon as I launch the tests it errors out saying session NULL not found. The test completes successfully on selenium version 3.4.0 but it fails on selenium versions 3.9.0 and above. Actual results: Seeing this error : org.openqa.selenium.WebDriverException: Session [null] not available and is not among the last 1000 terminated sessions with following stacktrace org.openqa.selenium.WebDriverException: Session [null] not available and is not among the last 1000 terminated sessions. Active sessions are[ext. key ******] Command duration or timeout: 17 milliseconds Build info: version: '2.53.1', revision: 'a36b8b1', time: '2016-06-30 17:32:46' System info: host: *****, ip: '*****', os.name: 'Windows 10', os.arch: 'x86', os.version: '10.0', java.version: '1.8.0_131' Driver info: org.openqa.selenium.remote.RemoteWebDriver Capabilities [{capabilities={moz:profile=*******************, rotatable=false, timeouts={implicit=0, pageLoad=300000, script=30000}, pageLoadStrategy=normal, moz:headless=false, moz:accessibilityChecks=false, moz:useNonSpecCompliantPointerOrigin=false, webdriver.remote.sessionid=*********, acceptInsecureCerts=false, browserVersion=61.0.2, platformVersion=10.0, moz:processID=9608, browserName=firefox, platformName=windows_nt, moz:webdriverClick=true}, sessionId=***************, platform=ANY}] Session ID: null at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206) at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:678) at org.openqa.selenium.remote.RemoteWebDriver$RemoteWebDriverOptions$RemoteTimeouts.pageLoadTimeout(RemoteWebDriver.java:879) at org.openqa.selenium.support.events.EventFiringWebDriver$EventFiringTimeouts.pageLoadTimeout(EventFiringWebDriver.java:573) at templates.NewTestTemplate.startBrowser(NewTestTemplate.java:194) at templates.NewTestTemplate.start(NewTestTemplate.java:156) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85) at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:510) at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:211) at org.testng.internal.Invoker.invokeMethod(Invoker.java:585) at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:816) at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1124) at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125) at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108) at org.testng.TestRunner.privateRun(TestRunner.java:774) at org.testng.TestRunner.run(TestRunner.java:624) at org.testng.SuiteRunner.runTest(SuiteRunner.java:359) at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:354) at org.testng.SuiteRunner.privateRun(SuiteRunner.java:312) at org.testng.SuiteRunner.run(SuiteRunner.java:261) at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52) at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86) at org.testng.TestNG.runSuitesSequentially(TestNG.java:1215) at org.testng.TestNG.runSuitesLocally(TestNG.java:1140) at org.testng.TestNG.run(TestNG.java:1048) at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:114) at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:251) at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:77) Expected results: The tests should have completed successfully as it does with selenium 3.4.0
Comment 1•6 years ago
|
||
Usually we use https://github.com/mozilla/geckodriver/issues as issue tracker, but while you are already here let me request two things which are missing in your report: 1) Please provide a trace level log of geckodriver. See https://firefox-source-docs.mozilla.org/testing/geckodriver/geckodriver/TraceLogs.html in how to get one, and then add it as attachment it here. 2) Provide some minimal source code to reproduce the problem.
Flags: needinfo?(seleniumfirefox18)
Updated•6 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → WORKSFORME
Comment 2•6 years ago
|
||
This is a known issue with Selenium Grid, please go check the tracker there for more details.
Comment 3•6 years ago
|
||
(In reply to David Burns :automatedtester from comment #2) > This is a known issue with Selenium Grid, please go check the tracker there > for more details. I don't know where this tracker is, so if you have more details please add a link to the issue. Until then this is incomplete due to missing information.
Resolution: WORKSFORME → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•