I want to fetch data from tables in UI. I know about looping through rows and columns using \"tr\" and \"td\". But the one the table I have is something like this:
IWebElement table = driver.FindElement(By.Id("id"));
List allRows = new List (table.FindElements(By.TagName("tr")));
foreach (var Row in allRows)
{
List cells = new List( Row.FindElements(By.TagName("td")));
foreach (var cel in cells)
{
string test = cel.Text;
}
}