Cannot run in step "Handle 'Alert' dialog"

2 posts, 0 answers
  1. Totti
    Totti avatar
    10 posts
    Member since:
    Sep 2010

    Posted 23 Sep 2010 Link to this post

    After record my steps in scenario, I run again recorded steps, and then I face in step: "Handle 'Alert' dialog"  (I need Click [OK] button from Alert message box) with error message , and cannot execute next steps.
    Error message:

    Failure Information:
    Timed out waiting '5000' msec. for dialog to be handled '1'
    System.TimeoutException: Timed out waiting '5000' msec. for dialog to be handled '1'
       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()
    '9/23/2010 11:05:46 AM' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.
    '9/23/2010 11:05:47 AM' - Overall Result: Fail

    How to fix this one ?
  2. Konstantin Petkov
    Konstantin Petkov avatar
    1911 posts

    Posted 24 Sep 2010 Link to this post

    Hello Totti,

    The "OK" button of an Alert dialog should be automatically clicked. Do you think the default timeout of 5 seconds is sufficient for your scenario? If not you can just change the HandleTimeout step property to a bigger value.

    If that doesn't help can you please elaborate more on how the application behaves? For example you type some text in the main application window then click a button which pops up an Alert dialog, is that the case or is it more complicated?

    Kind regards,
    Konstantin Petkov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top