Handle Generic dialogs

2 posts, 0 answers
  1. Riglet
    Riglet avatar
    8 posts
    Member since:
    May 2011

    Posted 29 Jul 2011 Link to this post


    I have to test the mandatory fields of a form. So I try to save the data without fill in all the fields.
    There is a javascript to pop up the alert dialog. And I try to handle the dialog (Button OK to continue).

    The excecution fail on IE and Firefox.
    I get this error :
    Timed out waiting '5000' msec. for any dialog to be handled '1'
    System.TimeoutException: Timed out waiting '5000' msec. for any dialog to be handled '1'
       at ArtOfTest.WebAii.Win32.Dialogs.BaseDialog.WaitUntilAnyHandled(IEnumerable`1 dialogs, Int32 handleCount, Int64 timeoutMilliseconds, Boolean resetHandleCount)
       at ArtOfTest.WebAii.Win32.Dialogs.BaseDialog.WaitUntilHandled(Int32 handleCount, Int32 timeout, Boolean resetHandleCount)
       at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.DialogHandlerDescriptor.Execute(Browser browser)
       at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.DialogHandlerDescriptor.Execute(IAutomationHost browser)
       at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)

    On Chrome and Safari, this works fine.

    Can you help me to make this step works on IE and Firefox ?


  2. Anthony
    Anthony avatar
    19 posts

    Posted 01 Aug 2011 Link to this post

    Hi Riglet,

    What type of dialog handler did Test Studio originally record for that test step? It should read "Handle Alert dialog", however your subject indicates you are using a Generic dialog. Here is a good breakdown on the subtle differences between dialogs. That page also shows how to add dialog handlers to your test manually.

    All the best,
    the Telerik team
    Check out the Test Studio roadmap to find out more about the new performance testing functionality coming in our R2 2011 release this September!

    Have you looked at the new Online User Guide for Telerik Test Studio?
Back to Top