Skip to content

[πŸ› Bug]: org.openqa.selenium.NoSuchSessionException: Session ID is null. Using WebDriver after calling quit()?Β #15554

@jbalooka

Description

@jbalooka

What happened?

org.openqa.selenium.NoSuchSessionException: Session ID is null. Using WebDriver after calling quit()?

How can we reproduce the issue?

It is a Long Running Test Case, Steps succeed, no WebDriverQuit happens, but in some Random Cases, and Random Steps, the SessionID Gets Erradicated from the WebDriver.

We are using the new W3C Compliant BIDI / Network API as well, and standard Selenium APIs

Relevant log output

org.openqa.selenium.NoSuchSessionException: Session ID is null. Using WebDriver after calling quit()?
Build info: version: '4.29.0', revision: '5fc1ec94cb'
System info: os.name: 'Windows 10', os.arch: 'x86', os.version: '10.0', java.version: '11.0.15'
Driver info: org.openqa.selenium.chrome.ChromeDriver
Command: [null, findElement {value=.//div[(@class='aw-command' or @class='aw-list-command') and .//*[@command-id='Awp0ModelObjListDisplayToggles' and (@role='button' or @type='button')]], using=xpath}]
Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 134.0.6998.178, chrome: {chromedriverVersion: 134.0.6998.165 (fd886e2cb29..., userDataDir: C:\Windows\SystemTemp\scope...}, fedcm:accounts: true, goog:chromeOptions: {debuggerAddress: localhost:50274}, networkConnectionEnabled: false, pageLoadStrategy: normal, platformName: windows, proxy: Proxy(), se:cdp: ws://localhost:50274/devtoo..., se:cdpVersion: 134.0.6998.178, setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webSocketUrl: ws://localhost:34090/sessio..., webauthn:extension:credBlob: true, webauthn:extension:largeBlob: true, webauthn:extension:minPinLength: true, webauthn:extension:prf: true, webauthn:virtualAuthenticators: true}
	**at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:176) ~[smo-plm-full.jar:?]
	at org.openqa.selenium.remote.service.DriverCommandExecutor.invokeExecute(DriverCommandExecutor.java:216) ~[smo-plm-full.jar:?]
	at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:174) ~[smo-plm-full.jar:?]
	at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:545) ~[smo-plm-full.jar:?]
	at org.openqa.selenium.remote.ElementLocation$ElementFinder$2.findElement(ElementLocation.java:165) ~[smo-plm-full.jar:?]
	at org.openqa.selenium.remote.ElementLocation.findElement(ElementLocation.java:59) ~[smo-plm-full.jar:?]
	at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:368) ~[smo-plm-full.jar:?]
	at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:362) ~[smo-plm-full.jar:?]
        at ...... MY CODE Trying to call findElement on the WebDriver**

Operating System

Windows 11

Selenium version

Java 4.29.0

What are the browser(s) and version(s) where you see this issue?

Chrome 134, Edge

What are the browser driver(s) and version(s) where you see this issue?

134.0.6998.165, Edge

Are you using Selenium Grid?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-defectSomething is not working as intendedJ-issue-templateApplied to issues not following the template, or missing information.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions