-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
disconnected: Unable to receive message from renderer (failed to check if window was closed: disconnected: not connected to DevTools) (Session info: headless MicrosoftEdge=119.0.2151.72) #126
Comments
Hi @itzhakja , it looks like one of the headless tab processes may be crashing during the test run. Are you able to share a code sample and minimal web page that reproduces the issue? |
We are also having this issue. I cant seem to reproduce it in a sharable sense because I am not sure exactly what's causing it just yet. We are using the runner images from microsoft (windows-2022) and they did an update with the 120 edgedriver and 120.00 browser version. Note: If it's ran with MicrosoftEdge=120.0.2210.77 & and Edgedriver 119 it works fine. Runner URL: https://github.com/actions/runner-images Error Message:
|
@bwalderman I am facing same issue after my Azure windows-2022 image that I am using for Selenium UI job upgraded to Before that everything worked as expected on: The newer versions of Edge are also have that error: Error: C# selenium code: /// Verify a popout link has opened a new page. /// /// Page header to look for. /// If the new tab shouold be closed after the test. protected void VerifyPopOutLink(string pageHeader, bool closeNewTab = true) { var parentHandle = _webDriver.Driver.CurrentWindowHandle; _webDriver.WaitUntilNewWindowIsOpened(2); var childwindows = _webDriver.Driver.WindowHandles.GetEnumerator(); while (childwindows.MoveNext()) { if (childwindows.Current != parentHandle) { _webDriver.Driver.SwitchTo().Window(childwindows.Current); var pageHeaderText = _webDriver.WaitUntilElementIsVisible(By.CssSelector(".navbar-brand > div:nth-child(1) > span:nth-child(2)")).Text; Assert.Equal(pageHeader, pageHeaderText); if (closeNewTab) { _webDriver.Driver.Close(); }
Log output: |
We have the same issue with
|
We could isolate the problem in our szeanrio. Maybe it also applies to others. The reason for us was that we set the environment variable Now when opening for example Outlook and afterwards started our target application for testing, we got the error. When we did not start Outlook there was no error. Our solution was to remove the environment variable from windows settings and set the environment variable only for the target application. |
Hello
I'm trying to run Selenium tests with Azure DevOps and I'm getting this error message:
[Failed] [disconnected: Unable to receive message from renderer (failed to check if window was closed: disconnected: not connected to DevTools) (Session info: headless MicrosoftEdge=119.0.2151.72)] [Details at 1 below]
Exceptions:
at OpenQA.Selenium.WebDriver.UnpackAndThrowOnError(Response errorResponse)
at OpenQA.Selenium.WebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
at OpenQA.Selenium.WebDriver.set_Url(String value)
at OpenQA.Selenium.Navigator.GoToUrl(String url)
Microsoft Edge WebDriver 119.0.2151.72
Microsoft Edge Version 119.0.2151.72 (Official build)
From a different build agent with the same Edge WebDriver and Version it works fine, it happens only in one on my build agents.
Thank you in advance
The text was updated successfully, but these errors were encountered: