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

DialogMonitor handlerdelegate

3 Answers 90 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 05 May 2013, 10:00 PM
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

3 Answers, 1 is accepted

Sort by
0
Boyan Boev
Telerik team
answered on 08 May 2013, 03:01 PM
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
0
John
Top achievements
Rank 1
answered on 09 May 2013, 08:01 AM
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
0
Boyan Boev
Telerik team
answered on 13 May 2013, 12:55 PM
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
Tags
General Discussions
Asked by
John
Top achievements
Rank 1
Answers by
Boyan Boev
Telerik team
John
Top achievements
Rank 1
Share this question
or