I noticed some problems with closing Internet Explorer 11.
I generally use a Close Application, Close Window, with a grace period of 30 seconds. This closes the window, but every 1 out 10 times, in the background, the process keeps on running.
I tried to change it to Close Application, Kill Process, with a grace period of 30 seconds, but this gives me the same results, sometimes the Iexplore process keeps on running. Not giving me an error or warning that the test step couldnt be executed properly.
While I do a lot of data driven test, for which the browser needs to restart a lot, this adds up and after a few hours I end up with a couple of 30 Iexplore processes running and all sorts of memory related windows warnings.
Is there a solid way to ensure the process is actually killed always, all the time?
Closing Internet Explorer 11 troubles
-
- Certified Professional
- Posts: 74
- Joined: Mon Aug 14, 2006 7:17 pm
- Location: CH
Re: Closing Internet Explorer 11 troubles
Hi Nico,
Why are you not using the OpenBrowser Method to close the Browser? For me this works perfectly.
For e.g. like:
Host.Local.OpenBrowser(url, browserType,string.Empty, closeAllOpenBrowsers, true);
But therefore you have to create a method in the user code.
Regards
Dan
Why are you not using the OpenBrowser Method to close the Browser? For me this works perfectly.
For e.g. like:
Host.Local.OpenBrowser(url, browserType,string.Empty, closeAllOpenBrowsers, true);
But therefore you have to create a method in the user code.
Regards
Dan
Re: Closing Internet Explorer 11 troubles
Thanks CookieMonster, I am going to give this a try.