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

Click on a element on the same row

2 Answers 27 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Okami
Top achievements
Rank 1
Okami asked on 12 Dec 2013, 03:58 PM
On a rad grid list I have a "delete" button 4 columns over. How do I do something in Test Studio where i detects the row I need by some text located on that row and then go 4 columns over to click on the delete?

2 Answers, 1 is accepted

Sort by
0
Steven
Top achievements
Rank 1
answered on 12 Dec 2013, 07:09 PM
you'll probably want to use a coded step to do this, similar to what's shown in this blog post.
0
Boyan Boev
Telerik team
answered on 17 Dec 2013, 03:09 PM
Hi Ming,

Thank you for contacting us.

You need to find the row with a specific text and then click on the fifth column. Here a sample code against our Silverlight demo site:

RadGridView myGrid = Pages.TelerikGridViewFor.SilverlightApp.Find.ByName<RadGridView>("RadGridView1");

GridViewRow myRow = myGrid.Rows.Where<GridViewRow>(_a => _a.TextBlockContent.Contains(
"Janet")).FirstOrDefault();

myRow.Cells[4].User.Click();

Here is a demonstration video.

Let me know if this helps.


Regards,
Boyan Boev
Telerik
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Okami
Top achievements
Rank 1
Answers by
Steven
Top achievements
Rank 1
Boyan Boev
Telerik team
Share this question
or