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

Save Dialog Save as Type

3 Answers 119 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 06 Nov 2015, 09:07 PM

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();​

3 Answers, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 11 Nov 2015, 05:15 PM
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!
0
Matt
Top achievements
Rank 1
answered on 13 Nov 2015, 06:27 PM

It looks like that works!

Thanks

0
Cody
Telerik team
answered on 13 Nov 2015, 09:13 PM
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!
Tags
General Discussions
Asked by
Matt
Top achievements
Rank 1
Answers by
Cody
Telerik team
Matt
Top achievements
Rank 1
Share this question
or