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

[Solved] Button click in Push button Control - not recorded

1 Answer 86 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
SwanB
Top achievements
Rank 1
SwanB asked on 14 Aug 2009, 08:27 AM
We are for the moment started an evaluation of the WebUI Test Studio

When recording a test for deleting a row in a grid. We have this traditional confirmation Dialogue box asking "Do you really want to delete this row". When clicking 'Yes' or 'No' the recorder does not recognize this action. When "playing" this recording, the script will obviously chrash.

The Dialogue box-/Push Button Control is of type System.Web.UI.WebControls.Button,
What do I miss (I assume this is suppored functionality) ?

Regards

1 Answer, 1 is accepted

Sort by
0
Missing User
answered on 14 Aug 2009, 03:38 PM
Hello Svein,

Thank you for your evaluation of WebUI Test Studio, we hope you find it useful for your testing needs. I ran a quick test against a simple System.Web.UI.WebControls.Button that was on a web page in WebUI and it worked alright in test recording and playback.

Was the button on a Win32 dialog, like a Confirmation type dialog on this example page? If so, you can add a dialog handler as described in this video.

The Generic Dialog Handler would be able to handle a confirmation type dialog. All you would need to do in the Properties Window for that Test Step is add the 'DialogTitle' string which is the caption for that dialog window, switch the 'HandleButtonMethod' drop down to 'ButtonPartialText', and add the 'ButtonPartialText' string to 'Yes' or 'No'.

For further reference, you can checkout the user guide that is installed in the WebUI installation folder under 'WebAii Automation Design Canvas 1.1'.

If the button was on the web page iteself, if you could please either post sample code for the button or attach a sample project for us to try on this end to see what the problem might be. Please post back with any other further questions you may have.

All the best,
Nelson Sin
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
General Discussions
Asked by
SwanB
Top achievements
Rank 1
Answers by
Missing User
Share this question
or