Save Dialog Save as Type

4 posts, 0 answers
  1. Matt
    Matt avatar
    2 posts
    Member since:
    May 2015

    Posted 06 Nov 2015 Link to this post

    Hey, I'm doing automated UI testing on a WPF application and we want to test exporting a table into multiple formats. The issue I'm having is that I can't seem to change the "Save as type" drop down menu in the save dialog. I'm using this script to save the file right now:

     

    SaveAsDialog saveDlg = SaveAsDialog.CreateSaveAsDialog(Manager.ActiveApplication, DialogButton.SAVE, @"C:\test " + date);
    Manager.DialogMonitor.AddDialog(saveDlg);
    Manager.DialogMonitor.Start();
     

    // Click export button script

     
    saveDlg.WaitUntilHandled(30000);
    Manager.DialogMonitor.Stop();​

  2. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 11 Nov 2015 Link to this post

    Hello Matt,

    I'm sorry for the delay getting back to you on this problem. We're temporarily overloaded in support at the moment.

    I don't think it's necessary to try and change the Save As Type drop down. Normally when you enter a filename with an explicit extension Windows will automatically save the file as that type. If you enter file.xls, it will be saved in that format. If you enter file.csv, it will be saved in that format and so on. Can you test this with your application?


    Regards,
    Cody
    Telerik
     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
  3. UI for WPF is Visual Studio 2017 Ready
  4. Matt
    Matt avatar
    2 posts
    Member since:
    May 2015

    Posted 13 Nov 2015 in reply to Cody Link to this post

    It looks like that works!

    Thanks

  5. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 13 Nov 2015 Link to this post

    Hello,

    Wonderful! Thank you for the update.

    Regards,
    Cody
    Telerik
     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
Back to Top