Thanks for the question and based on yout previous posts, I am assuming you are trying to search rows within a RadGrid like this demo page
If so, please try the following coded solution:
- Highlight and add the grid to your test project (see attached screenshot also for reference):
- The grid will be added to your project and should look like this in the Elements Explorer Window:
All Pages -> ASPNETGridDemo -> RadGrid1Div
- You can then find the cell you want by content, then get the row as the cell's parent. Please see the following coded step example based on the demo page:
//Add your test methods here...
"MyCustom Step Description"
GridDataCell c = Pages.ASPNETGridDemo.RadGrid1Div.Find.ByExpression<GridDataCell>(
GridDataItem i = c.Parent<GridDataItem>();
r = i.RowIndex;
The code finds the first row in the demo page by the cell content 'Chai', finds it's parent row, then int r is the row index. There are other properties in
you can use as well.
Please let us know if you have any questions on the above.
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.