When I want to run my selenium UI test written in C# in my CD pipeline I get
EdgeDriverInitialize threw exception. OpenQA.Selenium.WebDriverException: OpenQA.Selenium.WebDriverException: unknown error: MSEdge failed to start: was killed. 2021-10-29T09:52:23.5882844Z (unknown error: DevToolsActivePort file doesn't exist) 2021-10-29T09:52:23.5883689Z
(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.). Aborting test execution.
QUESTION IS: How do I find out what's the problem?
I have tried to
- update the driver to match Edge version
- open Edge manually and it opened without problems
- check Event Log - in the applications log I haven't seen anything related to Edge or WebDriver
I have noticed, that when I run the msedgedriver.exe manually, it starts listeting on port 9515.
However in my CD pipeline I see:
Starting MSEdgeDriver 95.0.1020.30 (09f7018e2a65a55dea3a0a261efca40ae03471ed) on port 57341