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

How to handle new Firefox browser window?

5 Answers 106 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Emily
Top achievements
Rank 1
Emily asked on 06 Jan 2012, 08:39 AM
Hi All,

I am in trouble to recognize new Firefox browser window. I happens when I click on a button, there is another window appears, but Telerik testing framework cannot count the new window.

MANAGER.Browsers.Count = 1 (only see the parent window)

Please help.

Emily

5 Answers, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 06 Jan 2012, 10:46 PM
Hello,

I just retested this and verified it works as expected. Please make sure you are correctly telling the framework to connect to the new popup window using code like this:

// Connect to pop-up window : 'http://www.w3schools.com/'
Manager.WaitForNewBrowserConnect("http://www.w3schools.com/", false, 5000);
Manager.ActiveBrowser.WaitUntilReady();

Greetings,
Cody
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Emily
Top achievements
Rank 1
answered on 09 Jan 2012, 04:16 AM
Hi,

I did the same thing and it returns

"System.OperationCanceledException: Exception occured waiting for the new browser to connect. ---> System.TimeoutException: Wait for condition has timed out\r\n   at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo)\r\n   at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout, WaitResultType errorResultType)\r\n   at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout)\r\n   at ArtOfTest.WebAii.Core.Manager.WaitForNewBrowserConnect(String url, Boolean isPartial, Int32 timeout)\r\n   --- End of inner exception stack trace ---\r\n   at ArtOfTest.WebAii.Core.Manager.WaitForNewBrowserConnect(String url, Boolean isPartial, Int32 timeout)\r\n..."

Please show me if I did something stupid.

Thanks,
Emily
0
Cody
Telerik team
answered on 09 Jan 2012, 10:21 PM
Hi Emily,

I am sorry you are running into this problem. I have some questions to try and diagnose what is causing this error:

1) What is the URL of the main window you are starting at?
2) What is the URL of the popup window?
3) Is this website publicly accessible such that I can try to connect to it to reproduce this problem? If so how do I access it and what steps do I need to follow?
4) Can you send me a video of your test executing and hitting this problem? Jing is a good free screen recorder. You can upload the recorded video to Screencast and just send me the link to the video.

Kind regards,
Cody
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Emily
Top achievements
Rank 1
answered on 12 Jan 2012, 08:47 AM
Hi Cody,
Sorry for lack of information. Here is what I am in
1. Domain: http://sm2.alterianconnect.com/sm2test/
2. The popup has no URL. It is invoked by clicking a button in active browser, related to call a Java script function.
3. The website is public to access.

Please help.
Thanks,
Emily

0
Cody
Telerik team
answered on 16 Jan 2012, 10:19 PM
Hello,

The website appears to be broken at the moment. Let me know when it's back up.

Greetings,
Cody
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
Emily
Top achievements
Rank 1
Answers by
Cody
Telerik team
Emily
Top achievements
Rank 1
Share this question
or