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

5 posts, 0 answers
  1. Senthil
    Senthil  avatar
    12 posts
    Member since:
    Apr 2010

    Posted 30 Apr 2010 Link to this post

    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

  2. Missing user
    Missing user avatar

    Posted 30 Apr 2010 Link to this post

    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.
  3. Missing user
    Missing user avatar

    Posted 10 May 2010 Link to this post

    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.
  4. Alan
    Alan avatar
    6 posts
    Member since:
    Aug 2011

    Posted 23 Mar 2012 Link to this post

    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
  5. Anthony
    Admin
    Anthony avatar
    19 posts

    Posted 23 Mar 2012 Link to this post

    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
Back to Top