Unable to Handle the Alert Dialog

4 posts, 0 answers
  1. Seema
    Seema avatar
    2 posts
    Member since:
    Feb 2011

    Posted 21 Mar 2011 Link to this post

    Hi Team

    I am unable to Handle the Alert Dialog using Telerik Web UI Dev edition,

    Could you please provide the sample Code to Click the 'OK' button in the Dialog..

    Thanks
  2. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 21 Mar 2011 Link to this post

    Hi Seema,
        could you please give me some additional info regarding your problem? What is happening? Does Test Studio fail to add a "Handle Dialog" step where it is required? Or is the step added correctly but somehow fails on execution?

    If the Handler isn't recorder at all then you can remedy the situation by manually adding a Dialog Handler (screenshot 1) at the appropriate palace.

    Hope to hear from you soon!

    Kind regards,
    Stoich
    the Telerik team
  3. Seema
    Seema avatar
    2 posts
    Member since:
    Feb 2011

    Posted 21 Mar 2011 Link to this post

    Hello, Thanks for quick reply

    yes Step is added Handle 'Confirm' dialog in the steps, when i tried to execute, system does not press 'OK' button in the dialog

    I seen from the Code after converting all steps to Code.
    So i Copied  the Code and added into my unit tests as below to Click  the OK

    Manager.LaunchNewBrowser();

     

     

     

    // Handle 'Confirm' dialog.

     

     

     

    ConfirmDialog confirmDialog = new ConfirmDialog(ActiveBrowser, DialogButton.OK);

     

     

    Manager.DialogMonitor.AddDialog(confirmDialog);
    confirmDialog.WaitUntilHandled(5000);

     

     

     

     

     


    Please let me know your thoughts.

  4. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 24 Mar 2011 Link to this post

    Hello Seema,
       It's hard to say anything definitive. Are you 100% sure the Dialog actually appears?

    If it does appear but the Handle Dialog step doesn't work then it might be a bug. The best thing here would be for me to reproduce this on my machine. In order to do that I will need access to this part of your application. Alternatively you can find a Dialog on a publicly-accessible page that also exhibits this behavior.

    You can open a support ticket in order to give me this info. Support tickets are completely confidential.

    Hope to hear from you soon!

    All the best,
    Stoich
    the Telerik team
Back to Top
  Cast Your Vote at DevPro Connections! Cast Your Vote at  Win IT Pro Connections!