Unable to find session with ID with selenium4

586 views
Skip to first unread message

Vincent Massol

unread,
Apr 7, 2022, 5:06:31 AM4/7/22
to Selenium Users
Hi guys,

On the XWiki open source project we've just moved to selenium 4 (4.1.3), using the "latest" official selenium docker image (through TestContainer) and most of our tests are failing with the following message (wasn't happening on selenium 3):

Caused by: org.openqa.selenium.WebDriverException: Unable to execute request for an existing session: Unable to find session with ID: 8c709715-6f38-4042-8dbf-1d7b91fc296c Build info: version: '4.1.3', revision: '7b1ebf28ef' System info: host: '18edc9896225', ip: '172.17.0.5', os.name: 'Linux', os.arch: 'amd64', os.version: '4.19.0-13-cloud-amd64', java.version: '11.0.14.1' Driver info: driver.version: unknown Build info: version: '4.1.3', revision: '7b1ebf28ef' System info: host: '29c22770d828', ip: '172.17.0.2', os.name: 'Linux', os.arch: 'amd64', os.version: '4.19.0-13-cloud-amd64', java.version: '11.0.6' Driver info: org.openqa.selenium.remote.RemoteWebDriver Command: [8c709715-6f38-4042-8dbf-1d7b91fc296c, maximizeCurrentWindow {}] Capabilities {acceptInsecureCerts: true, browserName: firefox, browserVersion: 99.0, javascriptEnabled: true, moz:accessibilityChecks: false, moz:buildID: 20220330194208, moz:debuggerAddress: localhost:46180, moz:firefoxOptions: {}, moz:geckodriverVersion: 0.30.0, moz:headless: false, moz:processID: 141, moz:profile: /tmp/rust_mozprofilei9LioD, moz:shutdownTimeout: 60000, moz:useNonSpecCompliantPointerOrigin: false, moz:webdriverClick: true, pageLoadStrategy: normal, platform: LINUX, platformName: LINUX, platformVersion: 4.19.0-13-cloud-amd64, proxy: Proxy(), se:cdp: ws://172.17.0.5:4444/sessio..., se:cdpVersion: 85.0, se:noVncPort: 7900, se:vnc: ws://172.17.0.5:4444/sessio..., se:vncEnabled: true, se:vncLocalAddress: ws://172.17.0.5:7900, setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify} Session ID: 8c709715-6f38-4042-8dbf-1d7b91fc296c    at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)    at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)    at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)    at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)    at org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:200)    at org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:133)    at org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:53)    at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:184)    at org.openqa.selenium.remote.TracedCommandExecutor.execute(TracedCommandExecutor.java:51)    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:567)    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:622)    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:626)    at org.openqa.selenium.remote.RemoteWebDriver$RemoteWebDriverOptions$RemoteWindow.maximize(RemoteWebDriver.java:993)    at org.xwiki.test.docker.internal.junit5.XWikiDockerExtension.beforeEachInternal(XWikiDockerExtension.java:219)


This happens on the first call we against the driver.

Would someone have an idea of the problem or at least a direction of what I could investigate/check?

Thanks!
-Vincent

Vincent Massol

unread,
Apr 7, 2022, 5:10:04 AM4/7/22
to Selenium Users
Sorry for the bad formatting (I cannot edit the message apaprently). Here it is again:

Caused by: org.openqa.selenium.WebDriverException: Unable to execute request for an existing session: Unable to find session with ID: 8c709715-6f38-4042-8dbf-1d7b91fc296c 
Build info: version: '4.1.3', revision: '7b1ebf28ef' 
System info: host: '18edc9896225', ip: '172.17.0.5', os.name: 'Linux', os.arch: 'amd64', os.version: '4.19.0-13-cloud-amd64', java.version: '11.0.14.1' 
Driver info: driver.version: unknown 
Build info: version: '4.1.3', revision: '7b1ebf28ef' 
System info: host: '29c22770d828', ip: '172.17.0.2', os.name: 'Linux', os.arch: 'amd64', os.version: '4.19.0-13-cloud-amd64', java.version: '11.0.6' 
Driver info: org.openqa.selenium.remote.RemoteWebDriver 
Command: [8c709715-6f38-4042-8dbf-1d7b91fc296c, maximizeCurrentWindow {}] 
Capabilities {acceptInsecureCerts: true, browserName: firefox, browserVersion: 99.0, javascriptEnabled: true, moz:accessibilityChecks: false, moz:buildID: 20220330194208, moz:debuggerAddress: localhost:46180, moz:firefoxOptions: {}, moz:geckodriverVersion: 0.30.0, moz:headless: false, moz:processID: 141, moz:profile: /tmp/rust_mozprofilei9LioD, moz:shutdownTimeout: 60000, moz:useNonSpecCompliantPointerOrigin: false, moz:webdriverClick: true, pageLoadStrategy: normal, platform: LINUX, platformName: LINUX, platformVersion: 4.19.0-13-cloud-amd64, proxy: Proxy(), se:cdp: ws://172.17.0.5:4444/sessio..., se:cdpVersion: 85.0, se:noVncPort: 7900, se:vnc: ws://172.17.0.5:4444/sessio..., se:vncEnabled: true, se:vncLocalAddress: ws://172.17.0.5:7900, setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify} 
Session ID: 8c709715-6f38-4042-8dbf-1d7b91fc296c    
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)    at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)    
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)    at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)    
at org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:200)    at org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:133)    
at org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:53)    at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:184)    
at org.openqa.selenium.remote.TracedCommandExecutor.execute(TracedCommandExecutor.java:51)    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:567)    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:622)    
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:626)    at org.openqa.selenium.remote.RemoteWebDriver$RemoteWebDriverOptions$RemoteWindow.maximize(RemoteWebDriver.java:993)    
at org.xwiki.test.docker.internal.junit5.XWikiDockerExtension.beforeEachInternal(XWikiDockerExtension.java:219)

Thx
Reply all
Reply to author
Forward
0 new messages