public GridCell GetCell(int row, int column) { string innerXpath = TableService.GetCell(row, column).GetXPath(); string outerXpath = GetCurrentElementXPath(); string fullXpath = outerXpath + innerXpath; GridCell cell = ComponentCreateService.CreateByXpath <GridCell>(fullXpath); SetCellMetaData(cell, row, column); return(cell); }
public IEnumerable <GridCell> GetCells() { var listOfCells = new List <GridCell>(); var rowCells = _parentGrid.TableService.GetRowCells(Index); for (int rowCellsIndex = 0; rowCellsIndex < rowCells.Count; rowCellsIndex++) { var rowCellXPath = rowCells[rowCellsIndex].GetXPath(); var cell = ComponentCreateService.CreateByXpath <GridCell>(rowCellXPath); _parentGrid.SetCellMetaData(cell, Index, rowCellsIndex); listOfCells.Add(cell); } return(listOfCells); }