TC14.2 \ Chrome 77 close browser \ process issue
All,
I have a web-based framework that I had for a good while been executing my test scripts against Chrome 76 using TC14.1 into TC14.2. Then Chrome updated to 77.
The issue that I get conssistently now is when my script at the end will logout of my web app, and then closes the Chrome browser.
i.e. code example:
.
.
// Logout
WebMyAccountSignOut(page);
Log.Message(" ");
Delay(30000); --- 3000 used to work for me, then I went to 6000 , still see issue at 30 sec wait
// Close Chrome browser
Sys.Browser(browser).Close();
Warning from TC14.2
Process "chrome" stayed in the system after the close command was used.
Chrome is working in the background and cannot be closed.
I have in Chrome 77 @ chrome://settings/system
Turned Off: Continue running background apps when Google Chrome is closed
I have to logout and close browser like a user as to clear out tokenid that the web app
tracks some on the next script when Chrome is started to login, the web app is still not
considered that user still logged in.
Need some help here :smileysad:
Thanks,
We've solved a similar problem with IE where sometimes the application stays memory resident. So, when we close the browser in script, we then use the following code to make sure that it's no longer memory resident. You might be able to adapt something similar for Chrome.
function closeIEInstance() { var counter = 0; var browser; browser = Sys.WaitBrowser('iexplore', 1000); while((browser.Exists) && (counter < 60)){ counter++; browser.Terminate(); browser = Sys.WaitBrowser('iexplore', 1000); } }