Closing Internet Explorer 11 troubles

Ask general questions here.
nico
Posts: 24
Joined: Tue Nov 04, 2014 3:13 pm

Closing Internet Explorer 11 troubles

Post by nico » Tue Jul 28, 2015 7:37 am

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?

CookieMonster
Certified Professional
Certified Professional
Posts: 74
Joined: Mon Aug 14, 2006 7:17 pm
Location: CH

Re: Closing Internet Explorer 11 troubles

Post by CookieMonster » Tue Jul 28, 2015 8:13 am

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

nico
Posts: 24
Joined: Tue Nov 04, 2014 3:13 pm

Re: Closing Internet Explorer 11 troubles

Post by nico » Tue Jul 28, 2015 1:02 pm

Thanks CookieMonster, I am going to give this a try.