This project is read-only.

Clicking on a particular cell in silverlight table

Jul 4, 2011 at 2:32 PM

I need to click on a particualr cell like row 2 column 3. not sure how to do using coded ui test.. plz help me

Jul 5, 2011 at 9:26 AM
Edited Jul 5, 2011 at 11:51 AM

See following line of code.

pgFindApplication.tblApplicationsSearchResult.FindRowAndDoubleClick(3, "Active", CUITe_HtmlTableSearchOptions.NormalTight);

Here we are trying to find the row where the string 'Active' is present in the 3rd column of the table, and double click it.

CUITe_HtmlTableSearchOptions.NormalTight means that the content in the cell will be trimmed before comparing with the expected string.
FindRowAndClick is also available.

If you want to click a cell by its row,col you may use FindCellAndClick or FindCellAndDoubleClick.