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

Generic Dialog in Coded Tests and Logic Branching based on the DialogButton

4 Answers 59 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Senthil
Top achievements
Rank 1
Senthil asked on 30 Apr 2010, 03:32 PM
What i need is to check if there is a generic dialog to tell if there is a failure , if so i need to call OnFailure() method else i need to proceed with the test. from the forum here i managed to trap the generic dialog...help i would require is:
how would i check if the Dialog has been triggered and based on that branch to another code :

The code which has helped me so far :

Manager.DialogMonitor.AddDialog(

new AlertDialog(ActiveBrowser, DialogButton.OK));

 

Manager.DialogMonitor.Start();

What i would need help in :

an if statement which checks if the generic dialog has been fired and based on which logic branching can take place.

Thanks
Sen

4 Answers, 1 is accepted

Sort by
0
Missing User
answered on 30 Apr 2010, 11:45 PM
Hello Sen,

Please see the following thread on how to add a delegate to a dialog handler:

http://www.artoftest.com/community/forums/webaii-automation-framework/forum-general-questions/handling-multiple-dialogs.aspx

The posts should relate to whichever dialog handler you are using since adding a delegate is the same for all of them. Let us know if you have further questions.

Kind regards,
Nelson Sin
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Missing User
answered on 10 May 2010, 11:43 PM
Hello again Senthil ,

Just wanted to check back to see if the AOT forum thread helped with what you wanted to do.

All the best,
Nelson
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Alan
Top achievements
Rank 2
answered on 23 Mar 2012, 04:37 PM
Hello,

I would like to look at the forum you have a link to above, but the link is broken.  Could you please direct me to the correct forum?

Thanks!
Alan
0
Anthony
Telerik team
answered on 23 Mar 2012, 05:01 PM
Hello Alan,

That forum is inactive, but here is a User's Guide article on how to handle dialogs in code.

Greetings,
Anthony
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Senthil
Top achievements
Rank 1
Answers by
Missing User
Alan
Top achievements
Rank 2
Anthony
Telerik team
Share this question
or