'Process "ieexplore" stayed in the system after the close command was used."
At seemingly random times in my script, Internet Explorer will remain opened. I also have a loop to loop through all browsers on the system. In this loop, 2 internet explorer processes are actually found. When the first one is not closed all the way, when the script tries to do anything with the second internet explorer, the test fails right there.
This is what I saw in the log:
'Process "ieexplore" stayed in the system after the close command was used."
How can I check for and close any opened Internet Explorer processes?
Not sure if you are killing the browser or the process. But ....
https://support.smartbear.com/viewarticle/72799/
Is a good starting point.
I use this code to close internet explorer (Jscript):
while(Sys.WaitProcess("iexplore").Exists){ Sys.Process("iexplore").Close(); }
It may take a few loops before it actually closes, but I consider it a cleaner more stable way than to abruptly kill the process with Terminate().