How to use if else condition to handle genericDialog ?

2 posts, 0 answers
  1. Wendy
    Wendy avatar
    1 posts
    Member since:
    May 2012

    Posted 13 Jun 2012 Link to this post

    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!




  2. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 15 Jun 2012 Link to this post

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