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

WPG AlertDialog problem

1 Answer 59 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Martin
Top achievements
Rank 1
Martin asked on 19 Oct 2011, 07:09 PM
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:
// 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?

1 Answer, 1 is accepted

Sort by
0
Anthony
Telerik team
answered on 25 Oct 2011, 04:23 PM
Hi Martin,

Thank you for reporting this. This is a bug and I logged a report for it. You can find the PITS Issue here: Public URL. In the meantime, please refrain from converting steps like this into code.

Kind regards,
Anthony
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
Martin
Top achievements
Rank 1
Answers by
Anthony
Telerik team
Share this question
or