This is a migrated thread and some comments may be shown as answers.

SetNewBrowserTracking always closes original window

3 Answers 42 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jeff
Top achievements
Rank 1
Jeff asked on 03 Mar 2011, 01:02 AM

Manager.SetNewBrowserTracking(
true);
Find.ById<HtmlAnchor>("OfferDescription_code").MouseClick();
Manager.WaitForNewBrowserConnect(AD_SITE, true, 9999);
Manager.ActiveBrowser.WaitUntilReady();
Assert.IsTrue(Manager.Browsers.Count == 2);


This Assert always fails because the original window is ALWAYS closed after the popup launches on the MouseClick() call.

I've tried in both IE and Firefox.  Any ideas?

3 Answers, 1 is accepted

Sort by
0
Stoich
Telerik team
answered on 08 Mar 2011, 03:49 PM
Hello Jeff,
      Before we try to come up with a workaround to this issue, I'll need to know: what are you trying to do? Why do you need a browser count == 2 ? Please give me some additional info on what you're trying to implement so that I can assist you effectively.

Hope to hear from you soon!

Regards,
Stoich
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Nova
Top achievements
Rank 1
answered on 24 Apr 2012, 02:41 AM
Hi Telerik,

i also met the same problem. we need to click a link, and new windows will pops up. I need do some action on the new window. then close the window... how to resolve this issue?
0
Plamen
Telerik team
answered on 27 Apr 2012, 10:35 AM
Hi Nova,

Please see this article for a detailed explanation on how to handle HTML Pop-ups.

If you are still unable to get this to work, we'll need more information on the issue. See here on what to provide so we can continue troubleshooting. The best will be if you can provide a sample site that demonstrates the same issue.

Regards,
Plamen
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Jeff
Top achievements
Rank 1
Answers by
Stoich
Telerik team
Nova
Top achievements
Rank 1
Plamen
Telerik team
Share this question
or