This question is locked. New answers and comments are not allowed.
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
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
3 Answers, 1 is accepted
0
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,
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
0
Seema
Top achievements
Rank 1
answered on 21 Mar 2011, 12:57 PM
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
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.
0
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,
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