Completed
Last Updated: 07 Aug 2014 12:24 by ADMIN
ADMIN
Cody
Created on: 01 Jul 2014 14:09
Type: Bug Report
2
Handle Confirm fails when put in IF block
If a test has a Handle Confirm inside an IF block and also outside any block, the one inside the IF block will fail:
Failure Information: 
~~~~~~~~~~~~~~~
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.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)

The dialog is actually handled, but the test is marked failed anyway.

If you disable or remove the Handle Confirm outside of the IF block, then all of a sudden the one inside the IF block works.
2 comments
ADMIN
Iliyan Panchev
Posted on: 07 Aug 2014 12:24
The fix will be part of the upcoming minor and major Test Studio builds.
Cody
Posted on: 01 Jul 2014 14:12
Reported in ticket 834763.