Forum Discussion

VegasQA's avatar
VegasQA
Contributor
11 years ago

IE10 Reported as "Already Running" When Its Not

As the subject line says, all of a sudden, more times than not (to the point that multiple work hours are being lost to this), TC10 will report that IE10 is already running when its not.



I've restarted TC, logged out of Windows and back in, restarted my PC and ran with nothing else active and it just keeps happening again and again.



Then, if it actually does launch the browser, TC will just lock up for no apparent reason.



What's truly odd here, however, is it ran just fine first thing this morning, it ran just fine yesterday (for the most part...it did to both of the above now and then), but now this error is rampant and I can't get anything done.



Any ideas, anyone?

3 Replies

  • Did you check if there is any process of internet explorer open? If yes, you can try:





    while(Sys.WaitProcess("iexplore").Exists){


        Sys.Process("iexplore").Terminate();


        Sys.Refresh();


      }




  • jorgesimoes1983's avatar
    jorgesimoes1983
    Regular Contributor
    I use this piece of code, inside a bat (placed at the root of the TestComplete project)



    [kill_IE.bat]



    taskkill /f /im "iexplore.exe"

    start /MAX iexplore.exe



    then call it every time I need to start IE like this:



    function kill_internet_explorer()

    {

      // Obtains the path to the current project

      var Path;

      var ficheiro = "kill_IE.bat";  

      Path = Project.Path;  

      Path += ficheiro;

     

      var objShell = new ActiveXObject("shell.application");        

      objShell.ShellExecute(ficheiro, "", "Path", "open", 1);

     

      Delay(2000);

    }
  • I just deleted Silverlight (since it was the app most recently installed on my PC) and then went back to TC (changing nothing else) and it appears to be working.



    Is Silverlight/TC10/IE10 a known bad combo?