HI,
I have a WPF application I want to test with Test Studio, but I'm havieng some problems to handle an Alert Dialog. In the application, i click a button to save my changes and a popup window appears to inform that changes had been saved. It contains nothing but a label and an OK button. If I execute the test from the VS plugin, it works, but when i generate code form that test these lines are created to handle the alertdialog:
The problem is that I don't have any ActiveBrowser, Instead I do have an ActiveApplication, but GenericDialgon needs an 'ArtOfTest.WebAii.Core.Browser' variable while ActiveApplication is an 'ArtOfTest.WebAii.Wpf.WpfApplication'.
I alos tried other posibilities like AlertDialog or ConfirmDialog, but I ended with the same problem. Can you help me please? Which is the correct class i should use for a WPF message box?
I have a WPF application I want to test with Test Studio, but I'm havieng some problems to handle an Alert Dialog. In the application, i click a button to save my changes and a popup window appears to inform that changes had been saved. It contains nothing but a label and an OK button. If I execute the test from the VS plugin, it works, but when i generate code form that test these lines are created to handle the alertdialog:
// Handle 'Generic' dialog.
GenericDialog genericDialog =
new
GenericDialog(ActiveBrowser,
"Modeling Scenario"
,
true
,
"Submit Completed Successfully"
);
genericDialog.ButtonId = 2;
Manager.DialogMonitor.AddDialog(genericDialog);
The problem is that I don't have any ActiveBrowser, Instead I do have an ActiveApplication, but GenericDialgon needs an 'ArtOfTest.WebAii.Core.Browser' variable while ActiveApplication is an 'ArtOfTest.WebAii.Wpf.WpfApplication'.
I alos tried other posibilities like AlertDialog or ConfirmDialog, but I ended with the same problem. Can you help me please? Which is the correct class i should use for a WPF message box?