Hi Telerik Team,
I am Facing Problems in Handling the Download Dialog in WPF-Application. All the exemples and solutions that i found, are talking about internet explorer & Browsers. I have a WPF-Application and tring to test the Feature: " Save and Load"
First I need to save the state, than to load the state. The state will be save as an XML-File with the extension " xxx.playlist". The test studio can't handle this window dialiog (see figure).
I have tried to program the save action, but it is not working.
Here is my code:
greeting and thanks
Mostafa
I am Facing Problems in Handling the Download Dialog in WPF-Application. All the exemples and solutions that i found, are talking about internet explorer & Browsers. I have a WPF-Application and tring to test the Feature: " Save and Load"
First I need to save the state, than to load the state. The state will be save as an XML-File with the extension " xxx.playlist". The test studio can't handle this window dialiog (see figure).
I have tried to program the save action, but it is not working.
Here is my code:
[CodedStep(@"Click Save")]
public void A022_001_SaveAndLoad_CodedStep2()
{
var settings = new Settings();
settings.Wpf = new ArtOfTest.WebAii.Core.Settings.WpfSettings("\"C:\\Program Files (x86)\\ClipJOCKEY_Nexio\\ClipJOCKEY.exe\"");
var manager = new Manager(settings);
manager.Start();
var theApp = manager.ActiveApplication;
SaveAsDialog saveDlg = SaveAsDialog.CreateSaveAsDialog(manager.ActiveApplication, DialogButton.SAVE, "test");
manager.DialogMonitor.AddDialog(saveDlg);
Thread.Sleep(15000);
manager.DialogMonitor.Start();
// LeftClick on Item180Textblock
Applications.ClipJOCKEYexe.ClipJOCKEY.Item180Textblock.User.Click(ArtOfTest.WebAii.Core.MouseClickType.LeftClick, 17, 25, ArtOfTest.Common.OffsetReference.TopLeftCorner, ArtOfTest.Common.ActionPointUnitType.Percentage, ((System.Windows.Forms.Keys)(0)));
Thread.Sleep(15000);
manager.DialogMonitor.Stop();
Thread.Sleep(15000);
}
The object manager.ActiveApplicationis is always in debugging initialized to zero. How can how can I initialize it? is that correct what I'm doing? Do you know the solution?
greeting and thanks
Mostafa