Getting plugin error message after closing the browser

Ask general questions here.
NishantSingh
Posts: 39
Joined: Thu Oct 09, 2014 1:15 pm
Location: Bangalore

Getting plugin error message after closing the browser

Post by NishantSingh » Sat Jan 03, 2015 10:44 pm

Hi,

I am using Ranorex 5.2 and windows 7 OS and Mozilla firefox 33.0.2

I am facing problem in closing the browser I have used the following methods to close the browser
1. RepObj.AmazonSite.Self.Close();
2.Host.Local.KillApplication(RepObj.AmazonSite.Self);
3.IList<Ranorex.WebDocument> AllDoms = Host.Local.Find<Ranorex.WebDocument>("/dom[@domain='www.amazon.in']");
foreach (Ranorex.WebDocument myDom in AllDoms)
{
myDom.Close();
}
but for each of these method I am getting same issues.

In each test case I am closing browser at the end of the TC and Opening the browser at the start of TC.

So every time it closes the browser it shows the plugin error message in a pop up window and when the browser start every time after the first TC two tabs get opened one for the session restore and other for the current TC.

Please help me with these issues. and give a perfect solution to close the browser.

PFA the screenshot

Regards,
Nishant Singh
Attachments
Browser_Close_error.jpg
Browser_Close_error.jpg (319.22 KiB) Viewed 895 times
Regrads,
Nishant Singh

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Getting plugin error message after closing the browser

Post by Support Team » Mon Jan 05, 2015 3:53 pm

Hi Nishant,

Unfortunately we are not aware of such an issue.
Is it possible for you to update Firefox to the latest version and try to reproduce this problem?

May I also ask you to send us the detailed error message and the Firefox crash report?

The Firefox crash report can be found by entering about:crashes into the addressbar and by opening the latest report.

Thank you in advance.

Regards,
Markus (S)
.
Image

NishantSingh
Posts: 39
Joined: Thu Oct 09, 2014 1:15 pm
Location: Bangalore

Re: Getting plugin error message after closing the browser

Post by NishantSingh » Mon Jan 05, 2015 8:33 pm

Hi markus,

I am sending you all the screenshot. Ranorex addon is not supported in Mozilla latest stable version 34.0.5

and crashes result is empty not able to send you whole report so sending you the crash ID so that you could me able to see the details. and sending the details of the crash pop window in a notepad.


PFA the attachment for all details and screenshot.


but what about the solution for closing the browser correctly so that when next test case run session restore window should not open.. I have tried all the method mentioned in above post.

Regards,
Nishant Singh
Attachments
crash_report.zip
(301.88 KiB) Downloaded 53 times
Regrads,
Nishant Singh

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Getting plugin error message after closing the browser

Post by Support Team » Wed Jan 07, 2015 4:41 pm

Hi Nishant,

Thank you for providing the error details.

Regarding the close issue
In general the following method works as expected when closing a dom-object
Host.Local.CloseApplication(repo.Ranorex.Self, new Duration(0));
May I ask you to add a grace period as a parameter to your code?

Regarding Firefox 34
Support for this version of Firefox was added to Ranorex 5.2.1. Please find more information in our Release Notes.

Regards,
Markus (S)
.
Image

NishantSingh
Posts: 39
Joined: Thu Oct 09, 2014 1:15 pm
Location: Bangalore

Re: Getting plugin error message after closing the browser

Post by NishantSingh » Wed Jan 14, 2015 7:19 pm

Hi Markus,

I was using trial version of the Ranorex studio 5.2 which now has expired at my personal desktop which has firefox v33 and not able to test your code piece but thanks for the rply.. may be it will be helpful.


regards,
Nishant Singh
Regrads,
Nishant Singh