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

Handle Generic dialogs

1 Answer 242 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Riglet
Top achievements
Rank 1
Riglet asked on 29 Jul 2011, 04:54 PM
Hi,

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'
InnerException:
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 ?

Thanks,

Pierre

1 Answer, 1 is accepted

Sort by
0
Anthony
Telerik team
answered on 01 Aug 2011, 05:38 PM
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,
Anthony
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?
Tags
General Discussions
Asked by
Riglet
Top achievements
Rank 1
Answers by
Anthony
Telerik team
Share this question
or