Script Failure on Unexpected Dialog

2 posts, 0 answers
  1. Tom
    Tom avatar
    30 posts
    Member since:
    Mar 2011

    Posted 25 May 2011 Link to this post

    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
  2. Cody
    Admin
    Cody avatar
    3354 posts

    Posted 25 May 2011 Link to this post

    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 >>

Back to Top