Forum Discussion
Marsha_R
Champion Level 3
tristaanogre
6 years agoEsteemed Contributor
Even so, one of the things about IE is that it almost always spawns two processes. And sometimes, even outside of TestComplete's test cases, closing the IE browser does not always end all the processes. I've seen this happen multiple times.
For this reason, we use the following code to close IE
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); } }
Related Content
- 3 months agoD0UG
- 6 months agoFelecia628
Recent Discussions
- 10 hours agoashly