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

Unable to handle the dialog box

8 Answers 201 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Dev
Top achievements
Rank 1
Dev asked on 06 Dec 2010, 02:23 PM
Hi Team,
             I am unable to handle a dialog box in webaii automation framework,i have attached the screenshot for this purpose.Kindly assist me with this how can I handle in C# scripts.
Regards
Dev.

8 Answers, 1 is accepted

Sort by
0
Stoich
Telerik team
answered on 08 Dec 2010, 06:34 PM
Hi Dev,
   what kind of a Dialog is that?
It looks like a Silverlight dialog but we're not sure. Or maybe it's Win32 - please let let us know.

The ideal thing in this case would be for you to provide us with access to your app. Of course we realize this might not be possible for you.

Something you can try:
We have a generic dialog handler which is pretty good for basic operations like clicking OK, CANCEL, etc. They way you use is, you record your test up to the point where you know the Dialog will pop-up and at that point add a Generic Dialog Handler to your test. You add it from the Handlers tab in WebUI Test Studio (see screenshot 1); Check out our User Manual to see how it's used:http://www.telerik.com/documents/automated-testing-tools/WebUITestStudioQAEditionStepByStep.pdf 
- let us know how that goes.

It's also possible to write your own Dialog Handler but it's real tricky and we don't recommend it at all.

Hope to hear from you soon!

All the best,
Stoich
the Telerik team
Interested in Agile Testing? Check out Telerik TV for a recording of Automated Testing in the Agile Environment
0
Dev
Top achievements
Rank 1
answered on 09 Dec 2010, 06:04 AM
Hi stoich,
                We had already used the Generic dialog handler in our project,but its not handling it,i mean the scripts by passes the checkpoint of the dialog handler.
   
0
Stoich
Telerik team
answered on 13 Dec 2010, 10:07 AM
Hello,
   I think the best way to resolve this is to let us write a custom Dialog Handler for you.

Would it be possible for you to provide us with access to a page containing an identical dialog? This may or may not be the page you're working on. We just need an example of the Dialog in order to write a custom handler for it.

Please let us know!

Kind regards,
Stoich
the Telerik team
Interested in Agile Testing? Check out Telerik TV for a recording of Automated Testing in the Agile Environment
0
Dev
Top achievements
Rank 1
answered on 13 Dec 2010, 11:33 AM
Hi Stoich,
              Thanks for the reply.Actually we cannot give the accessibility rights of any of our page due to some reasons so im attaching a more detailed screenshot of the dialog box this time,hope it provides you with the details you have been looking for writing the custom dialog handler.

Regards
Dev
0
Stoich
Telerik team
answered on 13 Dec 2010, 05:57 PM
Hi,
   I still need some additional info. First off:
is this a Silverlight pop-up? Judging by the screenshot - yes it is - but we cannot be sure. Please let us know.

If you're not sure how to determine whether it's a Silverlight Dialog - try to drag it outside of the browser. A Windows dialog can be dragged anywhere on the screen. On the other hand a Silverlight cannot leave the frame of the browser.

If you determine that the Dialog is a Silverlight pop-up, then please make sure you're running the very latest version of Silverlight. You can download it from here, for instance:
http://filehippo.com/download_silverlight/

Reinstall Silverlight, restart and try recording the dialog again.

If it's not a Silverlight dialog we'll have to further discuss what to do -- we won't be able to write a custom dialog without direct access to the Dialog.

Hope to hear from you soon!

Regards,
Stoich
the Telerik team
Interested in Agile Testing? Check out Telerik TV for a recording of Automated Testing in the Agile Environment
0
Dev
Top achievements
Rank 1
answered on 15 Dec 2010, 01:09 PM
Hi Stoich,
               Yes it is a silverlight pop up according to the definition provided by you and it has the latest version too,hope you have the sufficient information now to help us with.

Thanks
Dev
0
Cody
Telerik team
answered on 15 Dec 2010, 09:28 PM
Hi Dev,

Permit me to interject here.

Thank you for the additional information. Silverlight popups like that should be recordable as regular test steps and playback just fine, provided Silverlight 4 along with the lastest Microsoft updates have been applied to the test computer. Since you state you have already applied this and it still appears to not be working correctly I'd like to look at this problem on your computer via GoToMeeting. Let me know what time zone you are in and your availability and I'll setup the meeting. I'm in Austin, TX which is Central Time (GMT -6).

All the best,
Cody
the Telerik team
Interested in Agile Testing? Check out Telerik TV for a recording of Automated Testing in the Agile Environment
0
Dev
Top achievements
Rank 1
answered on 16 Dec 2010, 02:59 PM
Hi stoich,
               We are able to record the dialog box and now our scripts are working fine,
Thanks for the information provided.

Regards
Dev
Tags
General Discussions
Asked by
Dev
Top achievements
Rank 1
Answers by
Stoich
Telerik team
Dev
Top achievements
Rank 1
Cody
Telerik team
Share this question
or