protected void InitializeRowsandCells(string columnTag) { TableRowSeCollection theRows = new TableRowSeCollection(WebElement, By.TagName("tr")); foreach (var row in theRows) { _rows.Add(new TableRowSe(row, columnTag)); } foreach (var row in _rows) { foreach (var cell in row.Cells) { _cells.Add(cell); } } }
public TableElements(IWebElement body, string columnTag) : base(body) { TableRowSeCollection theRows = new TableRowSeCollection(WebElement, By.TagName(columnTag)); foreach (var row in theRows) { TableRowSe temp = new TableRowSe(row, columnTag); _rows.Add(temp); } foreach (var row in _rows) { foreach (var cell in row.Cells) { _cells.Add(cell); } } }