- Code: Select all
foreach (Row rows in repo.Grid.Grid.Rows) {
foreach(Cell c_cell in rows.Cells)
{
Report.Info("Cell "+c_cell.Text);
}
}
foreach (Row rows in repo.Grid.Grid.Rows) {
foreach(Cell c_cell in rows.Cells)
{
Report.Info("Cell "+c_cell.Text);
}
}public static void getCellOfSpecificHeader(string strHeaderName)
{
IList<Ranorex.Cell> myCellList = repo.Form.yourTable.Find<Ranorex.Cell>(".//cell[@accessiblename~'" + strHeaderName + "']");
foreach(Cell cell in myCellList )
{
if(!cell.IsHeader)
Report.Info("Cell " + cell.Text);
}
}string strHeaderNameof the Method is the Headername of your cell. In your example this would be "XYZ".
getCellOfSpecificHeader("XYZ")Users browsing this forum: No registered users and 0 guests