Forum Discussion
tristaanogre
8 years agoEsteemed Contributor
This is a bit of JavaScript code that we run at the beginning of every IE test case to make sure that we don't have any extra copies of IE running out there.
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);
}
}
However, if you aren't having trouble with extra iexplore processes, then it would help us help you more if you can describe or give screenshots of what you are doing in the test to figure out what might be hanging.