DialogMonitor handlerdelegate

4 posts, 0 answers
  1. John
    John avatar
    8 posts
    Member since:
    Oct 2010

    Posted 05 May 2013 Link to this post

    Hi,
      I've got a problem running the latest version of telerik test framework and chrome. I'm trying to get the text in a popup dialog in a javascript app. I've confirmed that when running the app in the following link (with slight modifications) it doesn't work.

    http://www.telerik.com/automated-testing-tools/community/forums/test-studio-express/automation-framework/confirm-and-alert-dialogs-issue-in-firefox.aspx

    Modification:

                ConfirmDialog confirmDialog = ConfirmDialog.CreateConfirmDialog(ActiveBrowser, DialogButton.OK);
                confirmDialog.HandlerDelegate = new DialogHandlerDelegate(dialog =>
                                                                              {
                                                                                  var captionWorks = dialog.Window.Caption;
                                                                                  var THIS_RETURNS_ZERO = dialog.Window.AllChildren.Count;
                                                                              });
                Manager.DialogMonitor.AddDialog(confirmDialog);
                Manager.DialogMonitor.Start();


    Can you confirm and advise on a workaround/when a fix might be expected?
      Thanks,
        John
  2. Boyan Boev
    Admin
    Boyan Boev avatar
    1045 posts

    Posted 08 May 2013 Link to this post

    Hello John,

    I am not sure if I understand you correctly. What is the exactly issue you are experiencing?

    In order to help you best please elaborate a bit more on your scenario. 

    1. Send us the Trace log.

    2. Please record a short video to show us the issue you are experiencing. Jing is great for this.

    3. Provide us with a copy of your test and access to your application so we can reproduce the issue on our end and give you a solution.

    4. Alternatively you can take a Fiddler trace using FiddlerCap and send it to us in a zip file. Basically with that trace I'll try to "simulate" your app in order to reproduce the issue.

    Check out also this article.

    Hope to hear from you soon.

    Kind regards,
    Boyan Boev
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  3. John
    John avatar
    8 posts
    Member since:
    Oct 2010

    Posted 09 May 2013 Link to this post

    Hi, 
     Apologies if i wasnt clear. As mentioned im running in chrome and trying to get the JavaScript pop up (alert) dialog text. For example, 

    alert ('hello world');

    I want to check that a message is on the screen with the text 'hello world'.

    Ive seen the article you mentioned at the bottom of your reply.  I noticed that it is ie only.  Is this only supported in ie?

    Did you look at the link in my message? I implemented that in an app and it doesnt work. As mentioned in my previous message the dialog.window.allchildren list is empty in the dialog monitor handler delegate.  This is my problem.

    Please can you confirm that this functionality works in chrome?
    If you need more information please let me know.
    Thanks, John
  4. Boyan Boev
    Admin
    Boyan Boev avatar
    1045 posts

    Posted 13 May 2013 Link to this post

    Hi John,

    My sincere apologies for the delayed reply. 

    Unfortunately you can achieve this only in IE. It is not working in Chrome. The link you've provided is about dialog handling not about verifying the dialog text.

    Thank you for your understanding.

    Regards,
    Boyan Boev
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top