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

Cannot run in step "Handle 'Alert' dialog"

1 Answer 63 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Totti
Top achievements
Rank 1
Totti asked on 23 Sep 2010, 05:16 AM
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'
InnerException:
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 ?

1 Answer, 1 is accepted

Sort by
0
Konstantin Petkov
Telerik team
answered on 24 Sep 2010, 09:17 AM
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
Tags
General Discussions
Asked by
Totti
Top achievements
Rank 1
Answers by
Konstantin Petkov
Telerik team
Share this question
or