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

How to use if else condition to handle genericDialog ?

1 Answer 76 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Wendy
Top achievements
Rank 1
Wendy asked on 13 Jun 2012, 05:24 PM

I have a question regarding the genericDialog in Silverlight application. I have the following scenario:

If I launch the Silverlight Application and the genericDialog appears (it means the error appears), the test fails; if not, the test passes.

Telerik Test Studio Generates the following code:

 

            GenericDialog genericDialog = new GenericDialog(ActiveBrowser, "", true, "");
            genericDialog.ButtonId = 2;
            Manager.DialogMonitor.AddDialog(genericDialog);

            ActiveBrowser.NavigateTo("testurl");

            genericDialog.WaitUntilHandled(5000); ----how to handle this one using if else condition?

Do you have any idea about how to use if else condition in genericDialog.WaitUntilHandled(5000)?

Thanks so much!




1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 15 Jun 2012, 03:35 PM
Hi Wendy,

Please see this article on "Conditional Dialog Handling" and let me know if you need further assistance on this.

Regards,
Plamen
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Wendy
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or