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

popup window issue with Firefox and Chrome

5 Answers 138 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Abdallah
Top achievements
Rank 1
Abdallah asked on 27 May 2015, 02:27 AM

Hi, I just started using telerik test studio version 2015.1.319 and whenever I try a test with a popup window, I can record in any browser but the playback only works with IE. Both FF and Chrome through an error(chrome actually just hangs). I tried the fix from (http://docs.telerik.com/teststudio/testing-framework/frequently-asked-questions) which suggests the modification

"Manager.SetNewBrowserTracking(true);

Manager.WaitForNewBrowserConnect("detail", true, 30000);

Manager.SetNewBrowserTracking(false);"

but that didn't work for either chrome or FF

here is the exception details

"ArtOfTest.Common.Design.Exceptions.ExecutionException: Exception thrown executing coded step: '[fixFFpopup_CodedStep] : Connect to pop-up window : 'http://10.100.1.108:600/BackEnd/FreeArea', ConnectToPopup=true'. ---> System.OperationCanceledException: Exception occurred waiting for the new browser to connect. ---> System.TimeoutException: Wait for condition has timed out
   at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo, Object target)
   at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout, WaitResultType errorResultType)
   at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout)
   at ArtOfTest.WebAii.Core.Manager.WaitForNewBrowserConnect(String url, Boolean isPartial, Int32 timeout)
   --- End of inner exception stack trace ---
   at ArtOfTest.WebAii.Core.Manager.WaitForNewBrowserConnect(String url, Boolean isPartial, Int32 timeout)
   at TestProject4.fixFFpopup.fixFFpopup_CodedStep() in c:\Users\abdallah\Documents\Test Studio Projects\TestProject4\fixFFpopup.tstest.cs:line 54
   --- End of inner exception stack trace ---
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteCodedStep(AutomationStep step, Object codeBehindInstance, StepsTracer tracer, AutomationStepResult result)"

Hope to hear from you soon;

Abdallah

5 Answers, 1 is accepted

Sort by
0
Ivaylo
Telerik team
answered on 29 May 2015, 12:47 PM
Hello Abdallah,

I have tested to handle a popup with Firefox and I was not able to reproduce the behavior. Are you sure the popup URL is not dynamic or it does not change on your end? Are you able to reproduce this behavior using the popup in this link. In case you are not able to handle the popup in the example provided I will need the test you created to take a look.

If you are able to handle the popup from the example provided, but you are still not able to handle the popup on your end, then I will need access to your application in order to reproduce this behavior and investigate further.

Regards,
Ivaylo
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Briar
Top achievements
Rank 1
answered on 06 Jul 2015, 07:23 PM

I am having a similar problem.  My test runs in IE 9 and Chrome but times out in Firefox on the ConnectToBrowser step.  I am running the latest version of TestStudio and Firefox 39.0.

The specific exception:

"ArtOfTest.Common.Design.Exceptions.ExecutionException: Exception occurred waiting for the new browser to connect. ---> System.OperationCanceledException: Exception occurred waiting for the new browser to connect. ---> System.TimeoutException: Wait for condition has timed out
   at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo, Object target)
   at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout, WaitResultType errorResultType)
   at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout)
   at ArtOfTest.WebAii.Core.Manager.WaitForNewBrowserConnect(String url, Boolean isPartial, Int32 timeout)
   --- End of inner exception stack trace ---
   at ArtOfTest.WebAii.Core.Manager.WaitForNewBrowserConnect(String url, Boolean isPartial, Int32 timeout)
   at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.HtmlDialogHandlerDescriptor.Execute(Browser browser)
   at ArtOfTest.WebAii.Design.Extensibility.HtmlActionDescriptor.Execute(IAutomationHost autoHost)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)
   --- End of inner exception stack trace ---"

 

Attached is a simplified version of the test steps I am using.

Thanks for your help!

 

Briar

 

P.S.  I tried the suggested test at the htmlcode tutorial and encountered the same type of error with Firefox.  

0
Briar
Top achievements
Rank 1
answered on 06 Jul 2015, 07:35 PM
I also bumped the PopupWaitTimeout to 60000 but to no avail.
0
Ivaylo
Telerik team
answered on 09 Jul 2015, 10:56 AM
Hello Briar,

This is a known issue and it is fixed in the upcoming R2 release next week. You can either wait for the official release or you can use this custom build where the problem should not be reproduced.

Thank you for your understanding.

Regards,
Ivaylo
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Briar
Top achievements
Rank 1
answered on 09 Jul 2015, 12:47 PM
Thank you, Ivaylo, for the quick response!  I will look for it in the upcoming release.
Tags
General Discussions
Asked by
Abdallah
Top achievements
Rank 1
Answers by
Ivaylo
Telerik team
Briar
Top achievements
Rank 1
Share this question
or