msedgedriver: DevToolsActivePort file doesn't exist

Andi 6 Reputation points
2021-11-22T08:32:12.267+00:00

Since version 95 msedgedriver no longer works if it is running under LocalSystem.

OpenQA.Selenium.WebDriverException
unknown error: MSEdge failed to start: was killed. (unknown error: DevToolsActivePort file doesn't exist) (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.)

The problem does not occur when it runs under applicationpoolidentity.

See also https://stackoverflow.com/questions/69770506/webdriverexception-unknown-error-msedge-failed-to-start-was-killed

Microsoft Edge | Microsoft Edge development
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Anonymous
    2021-11-23T07:42:58.577+00:00

    Hi @Andi

    I can reproduce the issue with Edge version 96.0.1054.29. After investigating, I find that Edge WebDriver can be started normally under LocalSystem account, it's Edge browser which can't be started under LocalSystem account.

    I think that's an issue with Edge version 96.0.1054.29. I suggest that you can provide feedback about this issue to Edge team by pressing Alt+Shift+I in Edge. The Edge team will check the feedback and improve the products continuously. Thanks for your understanding.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Regards,
    Yu Zhou

    1 person found this answer helpful.
    0 comments No comments

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.