WasmTestOnChrome failure: invalid session id
- Dominant language
- C#
- Stars
- 18.3k
- Forks
- 5.6k
- PR merge metrics
- PR metrics pending
Description
## Build Information
Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=1501225
Build error leg or test failing: WasmTestOnChrome-CLR-ST-Batch-2.WorkItemExecution
Pull request: https://github.com/dotnet/runtime.git/pull/130403
## Error Message
**DO NOT USE JSON BELOW IF THIS IS A BUILD BREAK** otherwise build analysis will allow pull requests to merge that break the build worse. For a build break, do not use this issue form. Make a regular new issue.
Fill the error message using [step by step known issues guidance](https://github.com/dotnet/arcade/blob/main/Documentation/Build%20Analysis/KnownIssueJsonStepByStep.md).
```json
{
"ErrorMessage": "crit: OpenQA.Selenium.WebDriverException: invalid session id: session deleted as the browser has closed the connection",
"BuildRetry": true,
"ExcludeConsoleLog": false
}
```
```
[13:13:14] info: === TEST EXECUTION SUMMARY ===
[13:13:14] info: Tests run: 114 Passed: 114 Inconclusive: 0 Failed: 0 Ignored: 0 Skipped: 0
[13:13:14] info:
[13:13:14] info: test-main.mjs exiting WasmTestRunner.dll System.Runtime.Serialization.Schema.Tests.dll after 0.13266666666666665 minutes with result 0 and linear memory 117964800 bytes
[13:13:14] info: DOTNET: forceDisposeProxies done: 14 imports, 0 exports, 0 GCHandles, 0 JSHandles.
[13:13:14] info: WASM EXIT 0
[13:13:14] info: Waiting to flush log messages with a timeout of 120 secs ..
[13:13:15] fail: Error while closing browser: OpenQA.Selenium.WebDriverException: invalid session id
at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse)
at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
at OpenQA.Selenium.Remote.RemoteWebDriver.get_WindowHandles()
at Microsoft.DotNet.XHarness.CLI.Commands.Wasm.WasmTestBrowserCommand.InvokeInternal(ILogger logger) in /_/src/Microsoft.DotNet.XHarness.CLI/Commands/WASM/Browser/WasmTestBrowserCommand.cs:line 117
[13:13:15] crit: OpenQA.Selenium.WebDriverException: invalid session id: session deleted as the browser has closed the connection
from disconnected: Unable to receive message from renderer
(Session info: chrome=149.0.7827.0)
at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse)
at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
at OpenQA.Selenium.Remote.RemoteWebDriver.FindElement(String mechanism, String value)
at OpenQA.Selenium.By.<>c__DisplayClass22_0.b__0(ISearchContext context)
at OpenQA.Selenium.By.FindElement(ISearchContext context)
at OpenQA.Selenium.Remote.RemoteWebDriver.FindElement(By by)
at Microsoft.DotNet.XHarness.CLI.Commands.Wasm.WasmBrowserTestRunner.<>c.b__6_3(IWebDriver e) in /_/src/Microsoft.DotNet.XHarness.CLI/Commands/WASM/Browser/WasmBrowserTestRunner.cs:line 138
at OpenQA.Selenium.Support.UI.DefaultWait`1.Until[TResult](Func`2 condition)
at Microsoft.DotNet.XHarness.CLI.Commands.Wasm.WasmBrowserTestRunner.RunTestsWithWebDriver(DriverService driverService, IWebDriver driver) in /_/src/Microsoft.DotNet.XHarness.CLI/Commands/WASM/Browser/WasmBrowserTestRunner.cs:line 137
at Microsoft.DotNet.XHarness.CLI.Commands.Wasm.WasmTestBrowserCommand.InvokeInternal(ILogger logger) in /_/src/Microsoft.DotNet.XHarness.CLI/Commands/WASM/Browser/WasmTestBrowserCommand.cs:line 86
at Microsoft.DotNet.XHarness.CLI.Commands.Wasm.WasmTestBrowserCommand.InvokeInternal(ILogger logger) in /_/src/Microsoft.DotNet.XHarness.CLI/Commands/WASM/Browser/WasmTestBrowserCommand.cs:line 152
at Microsoft.DotNet.XHarness.CLI.Commands.XHarnessCommand`1.Invoke(IEnumerable`1 arguments) in /_/src/Microsoft.DotNet.XHarness.CLI/Commands/XHarnessCommand.cs:line 145
XHarness exit code: 71 (GENERAL_FAILURE)
```
### Known issue validation
**Build: :mag_right:** https://dev.azure.com/dnceng-public/public/_build/results?buildId=1501225
**Error message validated:** `[crit: OpenQA.Selenium.WebDriverException: invalid session id: session deleted as the browser has closed the connection`]
**Result validation:** :white_check_mark: Known issue matched with the provided build.
**Validation performed at:** 7/10/2026 9:11:36 AM UTC
### Report
#### Summary
|24-Hour Hit Count|7-Day Hit Count|1-Month Count|
|---|---|---|
|0|0|0|
Contributor guide
Assessment
This issue has not been assessed yet.