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

Find row in radgrid and click button

1 Answer 111 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.
Mike Sorel
Top achievements
Rank 1
Mike Sorel asked on 27 Oct 2010, 01:36 PM
Hi,

I have a radgrid with data and a button on each row; the button opens a details page for the record of the button that is clicked.

In Web UI Test Studio Developer Edition, I would like to find a row in the radgrid by searching for text in a column, then execute the button click for that row.

I note on page 22 of the Quick Start Guide that there is a Find Expression Builder, I'm not sure whether this will do the job because I can't see how to open it.  On page 32 of the Quick Start Guide the description of the Elements Explorer states that there is a context menu to edit the Find Expression (presumably by opening the Find Expression Builder).  In the version that I have installed (2010.1) I can't find an Elements Explorer; I can find a Project Elements Selector which looks similar but does not have any context menus.

Thanks in advance for your help.

Mike

1 Answer, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 02 Nov 2010, 10:06 PM
Hi Mike Sorel,

To do this requires a custom coded step. I created a sample test that does something similar to what you want using our ASP.NET demo site. The code finds the row with the right text, then finds the checkbox on that row and checks it. You'll have to tweak the code to find your button and click it instead. I'd have to see the structure of your HTML before I can give you code that will actually work in your specific case.

Also, Project Elements is the same thing as Elements Explorer.

Sincerely yours,
Cody
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Mike Sorel
Top achievements
Rank 1
Answers by
Cody
Telerik team
Share this question
or