Page 1 of 1

Last browsing session closed unexpectedly error handling

Posted: Wed May 22, 2013 7:17 pm
by sridharaiyer
Hi,

While running a batch of tests, sometimes we get the "last browsing session closed unexpectedly" error dialog which prevents the browser to open up for the next test script and the next script fails at this point. We have to manually click on the go to "Go to your home page" option (please see the image attached)
Web page didnt close correctly.jpg
bring up and close the browser and restart the test. Any idea on handling this error message? Clearing cookies, may be?

Re: Last browsing session closed unexpectedly error handling

Posted: Fri May 24, 2013 4:07 pm
by Support Team
Hello,

Which version of Ranorex and Internet Explorer do you use?

How do you close your browser's window?
Could you please verify what happened in your test before this dialog appears?

Regards,
Markus (T)

Re: Last browsing session closed unexpectedly error handling

Posted: Tue May 28, 2013 4:50 pm
by sridharaiyer
IE 8
Ranorex ver 4.0.3.22982
.Net Runtime ver 2.0.50727.4984

The test failed to identify an object due to a coding error before it failed.

Re: Last browsing session closed unexpectedly error handling

Posted: Wed May 29, 2013 8:32 am
by mdgairaud
As a workaround until you find a good solution:
To turn off the warnings.

GPEdit.msc
Administrative Templates - > Windows Components -> Internet Explorer
Enable - Turn off Automatic Crash Recovery Prompt

This also might be useful:
Enable - Turn off Crash Detection

source: http://social.technet.microsoft.com/For ... 426a5362a/


regards,
Mateo.

Re: Last browsing session closed unexpectedly error handling

Posted: Wed May 29, 2013 4:03 pm
by Support Team
Hello,

Do you start your browser right before you close it?
It could be that the browser process is not closed at the time it is restarted.

If yes, could you please add a short delay (e.g. 500 ms) before you restart your browser?

Thank you in advance.

Regards,
Markus (T)