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
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();
Cody
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
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
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.
Cody
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
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
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.