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

Script Failure on Unexpected Dialog

1 Answer 131 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Tom
Top achievements
Rank 1
Tom asked on 25 May 2011, 05:31 PM
I'm getting a timeout error that I think is associated with an unexpected dialog. It's actually difficult for me to tell from the log if that's the cause of the failure. Can you help me track down where the problem is occurring and how I can resolve it?

Overall Result: Fail
------------------------------------------------------------
'5/25/2011 11:47:51 AM' - Starting execution....
'5/25/2011 11:47:51 AM' - Detected a Silverlight Test. Setting EnableSilverlight=True
'5/25/2011 11:47:55 AM' - Detected custom code in test. Locating test assembly: TrendBrowserLoad.dll.
'5/25/2011 11:47:55 AM' - Assembly Found: C:\Users\user\Documents\WebUI Test Studio Projects\TrendBrowserLoad\bin\TrendBrowserLoad.dll
'5/25/2011 11:47:55 AM' - Loading code class: 'TrendBrowserLoad.COM_018_A'.
------------------------------------------------------------
'5/25/2011 11:48:00 AM' - 'Pass' : 1. Navigate to : '/TrendTestPage.aspx'
'5/25/2011 11:48:08 AM' - 'Pass' : 2. Desktop command: HoverOver on Item0Zoomcanvas
'5/25/2011 11:48:09 AM' - 'Pass' : 3. Desktop command: LeftClick on Pin icon to pin Flyout Pane open
'5/25/2011 11:48:09 AM' - 'Pass' : 4. Desktop command: LeftClick on LoadChartTextblock
'5/25/2011 11:48:15 AM' - 'Pass' : 5. Handle 'FileUpload' dialog.
'5/25/2011 11:48:16 AM' - 'Pass' : 6. Wait for '1000' msec.
'5/25/2011 11:48:17 AM' - 'Pass' : 7. Desktop command: LeftClick on ApplyTextblock
'5/25/2011 11:48:22 AM' - 'Pass' : 8. Desktop command: LeftClick on LegendLocationCombobox
'5/25/2011 11:48:24 AM' - 'Pass' : 9. Desktop command: LeftClick on TopTextblock
'5/25/2011 11:48:25 AM' - 'Pass' : 10. Click Legend Location Combo Box
'5/25/2011 11:48:26 AM' - 'Pass' : 11. Select "Top" from the dropdown
'5/25/2011 11:48:27 AM' - 'Pass' : 12. Click Apply
'5/25/2011 11:48:31 AM' - 'Pass' : 13. Click SaveButtonButton
'5/25/2011 11:48:34 AM' - LOG: Unexpected dialog encountered. Taking no action.
'5/25/2011 11:48:42 AM' - 'Fail' : 14. Handle 'Download' dialog.
------------------------------------------------------------
Failure Information:
~~~~~~~~~~~~~~~
Timed out waiting '10000' msec. for dialog to be handled '1'
InnerException:
System.TimeoutException: Timed out waiting '10000' msec. for dialog to be handled '1'
   at ArtOfTest.WebAii.Win32.Dialogs.BaseDialog.WaitUntilHandled(Int32 handleCount, Int32 timeout, Boolean resetHandleCount)
   at ArtOfTest.WebAii.Win32.Dialogs.DownloadDialogsHandler.WaitUntilHandled(Int32 timeout)
   at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.DownloadDialogHandlerDescriptor.Execute(Browser browser)
   at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.DialogHandlerDescriptor.Execute(IAutomationHost browser)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep()
------------------------------------------------------------
'5/25/2011 11:48:42 AM' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.
------------------------------------------------------------
'5/25/2011 11:48:42 AM' - Overall Result: Fail
'5/25/2011 11:48:42 AM' - Duration: [0 min: 47 sec: 165 msec]
------------------------------------------------------------
'5/25/2011 11:48:42 AM' - Test completed!

 



Thanks,
TomB

1 Answer, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 25 May 2011, 10:04 PM
Hi Tom,

The most common cause of problems with download dialog handling is that the checkbox has not been unchecked as shown in figure 11 of this documentation. This has to done manually once by downloading any file. Once unchecked IE will remember that setting and use it from then on.

Greetings,
Cody
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Tags
General Discussions
Asked by
Tom
Top achievements
Rank 1
Answers by
Cody
Telerik team
Share this question
or