首先取到第一层的值,即表格的值,然后再通过自写代码来得到具体的值,比如一个表格的第7行第6列的值:
public void AssertMethod1()
{
WinTable uIDataGridViewTable = this.UIHRMClientVer2320910Window.UILaurelPark1Window.UIDataGridView1Window.UIDataGridViewTable;
WinRow row = uIDataGridViewTable.Rows[6] as WinRow;
WinCell cell = row.Cells[5] as WinCell;
string cellValue = cell.Value;
Assert.AreEqual(this.AssertMethod1ExpectedValues.UIDataGridViewTableName,cellValue);
}