Forum Discussion

paul_igoe's avatar
paul_igoe
Contributor
11 years ago

browser close/terminate doesnt kill all chrome processes

Hi,



Anybody else having problems with chrome v37 and TC v10.3?

Calling browser Close() or Terminate() leaves 1 or sometimes 2 chrome processes running, which causes testcomplete to hang next time you try to launch chrome.



I have disabled the chrome setting "Continue running background apps when Google Chrome is closed" .



I have scripted a workaround to kill any chrome processes with pskill command line, but I'd like to know if this is a known issue with TC and/or chrome.



Regards,

Paul







  • Yup, same thing here. But it's more of a Windows/Chrome issue. It happens on my home laptop without any automation software installed.



    That said, just bury the terminate command in a loop and let it ride.




    function KillEmAll()


    {


       while ( Sys["WaitBrowser"]()["Exists"] )


        Sys["WaitBrowser"]()["Terminate"]();


    }



    This will kill all of the browser Windows/processes until there are no more.... and then it will continue on (and it's a cool homage to Metallica :) ).