WebDriver loses control over Edge because Edge get in status "Suspended"

Fixed Issue #7290831


illy M.
Apr 21, 2016
This issue is public.
Found in
  • Microsoft Edge
Found in build #
Reported by 5 people

Sign in to watch or report this issue.

Steps to reproduce

Because I cannot run the WebDriver in noninteractive session:
I open an RDP Session to the server, Execute the MicrosoftWebDriver.exe, then close the RDP Session (Without doing a “Sign out”)
Then I run a script in a loop that open an Edge session, run some commands and closes the Edge session.
The script usually run for 2-16 hours then fails with errors (seen when running the WebDriver with the -Verbose switch) like:

Received a request: DELETE http://win10.ccccloud.local:17556/session/FD7656FD-DBF5-49FE-A9BD-C44F5BACDE91 
Response: {"sessionId":"FD7656FD-DBF5-49FE-A9BD-C44F5BACDE91","status":13,"value":{"message":"Unknown error"}}
Received a request: POST http://win10s.ccccloud.local:17556/session/385A2332-57B3-486B-B943-B9BA18140601/elements 
{"using":"css selector","value":"frame[name='mainFrame'],iframe[name='mainFrame']"}
Response: {"sessionId":"385A2332-57B3-486B-B943-B9BA18140601","status":21,"value":{"message":"Timeout"}}
Received a request: GET http://win10s.ccccloud.local:17556/sessions 
Response: {"sessionId":null,"status":21,"value":{"message":"Timeout"}}

Or the WebDriver will not show anything in the log and my HTTP request will time out.
Any following command to the WebDriver will Timeout so the driver is essentially unusable anymore.
When I look at the Processes in task manager I can see that the Processes MicrosoftEdge.exe and MicrosoftEdgeCP.exe are open and in status “Suspended” and not “Running”
If I Kill the Processes the WebDriver will start to work again
Also If I will reconnect to my “Disconnected” RDP session that the WebDriver is running on the Edge Processes will change from “Suspended” to “Running” and the WebDriver will start to work again.

  1. I don’t know why Edge getting randomly suspended after running the same script for several hours
  2. WebDriver should know how work with “Suspended” Edge Process or have a mechanism to prevent it from getting Suspended


Comments and activity

  • Microsoft Edge Team

    Changed Assigned To to “Ibrahim O.”

    Changed Assigned To to “Mara P.”

    Changed Assigned To from “Mara P.” to “Clay M.”

    Changed Status to “Confirmed”

    Changed Title from “WebDriver loses control over Edge because Edge get in status "Suspended"” to “WebDriver loses control over Edge because Edge get in status "Suspended"”

    Changed Assigned To from “Clay M.” to “Ben B.”

    Changed Assigned To from “Ben B.” to “Clay M.”

    Changed Assigned To from “Clay M.” to “Mustapha J.”

    Changed Status from “Confirmed”

    Changed Assigned To from “Mustapha J.” to “Clay M.”

    Changed Assigned To from “Clay M.” to “Mustapha J.”

    Changed Status to “Confirmed”

  • Guys do you plan to ever fix that or just going to change ownership? This is serious issue and no matter there is a workaround (which I found hard) should be fixed. But in this issue as well as in 9734266 all you did for 2 years was change the assign person every few months and do nothing… Get more serious please if you expect people to use your browser for automation purposes or make them just put @SkipEdge tag…

  • Microsoft Edge Team

    Changed Status from “Confirmed” to “Fixed”

  • Yes, please…a fix would be nice.

  • Hello,

    Thank you for providing this information about the issue. We have confirmed the problem, and are considering a solution for a future build of Edge. We are presently tracking this issue as a duplicate of an existing internal bug report. We look forward to additional feedback you may have on how we can improve Microsoft Edge.

    Best Wishes,
    The MS Edge Team

You need to sign in to your Microsoft account to add a comment.

Sign in