Forum Discussion
Automation not working anymore with Edge 93 in non-interactive session
We are using the Edge web driver to run automated tests on a server. After updating to Edge 93 tests don't work like they did before. I was able to reproduce that Edge responds differently when run in a non-interactive session.
Steps to reproduce
Create C# project with Selenium.WebDriver package (4.0.0)
var options = new OpenQA.Selenium.Edge.EdgeOptions()
{
UseChromium = true,
DebuggerAddress = "localhost:9222",
};
using var driver = new OpenQA.Selenium.Edge.EdgeDriver(options);
driver.Navigate().GoToUrl("https://www.google.com");
var screenshot = driver.GetScreenshot();
Create a scheduled task running "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --remote-debugging-port=9222 --enable-automation
Set scheduled task to "Run only when the user is logged on"
Run scheduled and run application -> creates screenshot as expected
End scheduled task and set to "Run whether user is logged on or not" (enter password)
Run scheduled and run application ->error: The HTTP request to the remote WebDriver server for URL http://localhost:58123/session/f6c84ea3b35e3a53d074dca63867e87d/screenshot timed out after 60 seconds.
---
Taking a screenshot is one example of things that behave differently in a non-interactive session. In other cases the error was that an element was not clickable which it clearly is when seeing the browser on the screen.
I saw the same behavior with the latest Beta and Alpha release. With the previous 92 version as well as Chrome 93 there was no problem.
3 Replies
- co631Copper ContributorNot sure what changed but now Edge is working again like it used to do.
- Alexandra-RFormer Employee
Hey there!
This question's a little outside my expertise, but I've reached out to some folks internally to see if anyone knows what may have changed and how to work around it. I'll circle back when I know more, unless someone swoops in to save the day with the answer before I get one!
Alex Rowell (she/her)
Community Manager - Microsoft Edge
Join us on Twitter, or over on Reddit in r/MicrosoftEdge or r/edge- co631Copper Contributor
Thank you for your feedback, Alex. Would be awesome if you could find out more from your colleagues.