popup window issue with Firefox and Chrome

6 posts, 0 answers
  1. Abdallah
    Abdallah avatar
    1 posts
    Member since:
    May 2015

    Posted 26 May 2015 Link to this post

    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

  2. Ivaylo
    Admin
    Ivaylo avatar
    750 posts

    Posted 29 May 2015 Link to this post

    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!
  3. Briar
    Briar avatar
    58 posts
    Member since:
    Jun 2014

    Posted 06 Jul 2015 Link to this post

    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.  

  4. Briar
    Briar avatar
    58 posts
    Member since:
    Jun 2014

    Posted 06 Jul 2015 in reply to Briar Link to this post

    I also bumped the PopupWaitTimeout to 60000 but to no avail.
  5. Ivaylo
    Admin
    Ivaylo avatar
    750 posts

    Posted 09 Jul 2015 Link to this post

    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!
  6. Briar
    Briar avatar
    58 posts
    Member since:
    Jun 2014

    Posted 09 Jul 2015 in reply to Ivaylo Link to this post

    Thank you, Ivaylo, for the quick response!  I will look for it in the upcoming release.
Back to Top