Last browsing session closed unexpectedly error handling

Ranorex Studio, Spy, Recorder, and Driver.
sridharaiyer
Posts: 3
Joined: Fri Jul 13, 2012 10:16 pm

Last browsing session closed unexpectedly error handling

Post by sridharaiyer » Wed May 22, 2013 7:17 pm

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?
You do not have the required permissions to view the files attached to this post.

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Last browsing session closed unexpectedly error handling

Post by Support Team » Fri May 24, 2013 4:07 pm

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)

sridharaiyer
Posts: 3
Joined: Fri Jul 13, 2012 10:16 pm

Re: Last browsing session closed unexpectedly error handling

Post by sridharaiyer » Tue May 28, 2013 4:50 pm

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.

mdgairaud
Posts: 87
Joined: Sun Aug 05, 2012 11:59 am
Location: Bilbao, Spain

Re: Last browsing session closed unexpectedly error handling

Post by mdgairaud » Wed May 29, 2013 8:32 am

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.

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Last browsing session closed unexpectedly error handling

Post by Support Team » Wed May 29, 2013 4:03 pm

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)