Download file dialog with "Find" button instead of "Open" button doesn't handled properly

2 posts, 0 answers
  1. Anton Litunenko
    Anton Litunenko avatar
    5 posts
    Member since:
    Apr 2010

    Posted 15 Dec 2010 Link to this post

    Hi!

    I would like to share a problem, we experinced recently.

    In 2 different tests we have got download file dialogs.

    In first test case IE 7 shows Download dialog with "Open", "Save", "Cancel" buttons. And this dialog is handled properly. (see attached file OpenSaveCancel.png)

    In other test case IE 7 shows Dowload dialog with "Find", "Save", "Cancel" buttons. And Webaii doesn't handle this dialog at all. (see attached file FindSaveCancel.png)

    Our configuration:
    Webaii: 2010.2 830
    IE7
    OS: WinXP

    Here is a piece of code which handles both dialogs:

    IEDownloadDialog iedownload = new IEDownloadDialog(
        Browser,
        DialogButton.SAVE,
        Manager.Desktop);
     
    Manager.DialogMonitor.AddDialog(iedownload);
     
    SaveAsDialog saveas = new SaveAsDialog(
        Browser,
        DialogButton.SAVE,
        fname,
        Manager.Desktop);
     
    Manager.DialogMonitor.AddDialog(saveas);
     
    IEDownloadCompleteDialog iedownloadComplete1 = new IEDownloadCompleteDialog(
        Browser,
        DialogButton.CLOSE,
        Manager.Desktop);
     
    Manager.DialogMonitor.AddDialog(iedownloadComplete1);
    Manager.DialogMonitor.Start();
     
    downloadExcelLink.MouseClick(MouseClickType.LeftClick);

    We also tried to write this test using WebUI Test studio Developers edition, but we got the same issue. 

    Could you please help us to resolve this issue?
  2. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 21 Dec 2010 Link to this post

    Hi Anton,
       I could not confirm the problem. Are you using the latest version of WebAii (2010.3.1213)? If you're not upgrading might solve the issue. You can downloaded it from our website.

    I tried handling the described "Find" dialog - it worked both in Dev edition and in code only. I handle it as a regular Download dialog. Here's the code for a test that navigates to a site, opens a Find Dialog and handles it (run successfully on my machine):
                            "htm");
     
            ArtOfTest.WebAii.Win32.Dialogs.IEDownloadDialog md = new ArtOfTest.WebAii.Win32.Dialogs.IEDownloadDialog
     
    (ActiveBrowser,
        ArtOfTest.WebAii.Win32.Dialogs.DialogButton.CANCEL,
        Manager.Desktop);
     
            Manager.DialogMonitor.AddDialog(md);
     
            ActiveBrowser.Window.SetFocus();
            HtmlButton b = Find.ByExpression<HtmlButton>("innerText=Download \"Stairway To Heaven\" Guitar Pro Tab");
            b.ScrollToVisible(ArtOfTest.WebAii.Core.ScrollToVisibleType.ElementTopAtWindowTop);
            b.MouseClick();

    Paste the code in a new test, run it and let me know whether it runs successfully.

    Hope to hear from you soon!

    Best wishes,
    Stoich
    the Telerik team
    Interested in Agile Testing? Check out Telerik TV for a recording of Automated Testing in the Agile Environment
Back to Top