I unbale to interact with the edge browser on Azure portal in my web job which uses selenium automation

Ganesh Babar 0 Reputation points
2025-03-07T12:12:41.6933333+00:00

I have my web job deployed on Azure portal.

Web job has the Selenium script which will open the edge browser and interact with it to test my application.

When I run my job getting below error .


Starting Microsoft Edge WebDriver 133.0.3065.82 (e8aeaf3e01176b71fe9a899401d4da7cd0bcdf50) on port 50381
[03/07/2025 12:10:20 > 135f53: INFO] To submit feedback, report a bug, or suggest new features, please visit https://github.com/MicrosoftEdge/EdgeWebDriver
[03/07/2025 12:10:20 > 135f53: INFO] 
[03/07/2025 12:10:20 > 135f53: INFO] Only local connections are allowed.
[03/07/2025 12:10:20 > 135f53: INFO] Please see https://aka.ms/WebDriverSecurity for suggestions on keeping Microsoft Edge WebDriver safe.
[03/07/2025 12:10:20 > 135f53: INFO] 
[03/07/2025 12:10:21 > 135f53: INFO] msedgedriver was started successfully on port 50381.
[03/07/2025 12:10:35 > 135f53: INFO] Errors, Failures and Warnings
[03/07/2025 12:10:35 > 135f53: INFO] 
[03/07/2025 12:10:35 > 135f53: INFO] 
[03/07/2025 12:10:35 > 135f53: INFO] 1) Error : ConsoleApp1.Class1.Print()
[03/07/2025 12:10:35 > 135f53: INFO] System.InvalidOperationException : session not created: Microsoft Edge failed to start: crashed.
[03/07/2025 12:10:35 > 135f53: INFO]   (session not created: DevToolsActivePort file doesn't exist)
[03/07/2025 12:10:35 > 135f53: INFO]   (The process started from msedge location C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe is no longer running, so msedgedriver is assuming that msedge has crashed.) (SessionNotCreated)
Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
2,482 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.