-
Jeff replied to the topic Find rows & columns of a table using selenium in the forum Quality Assurance / Software Testing 6 years, 4 months ago
Use below code
List<WebElement> iRows = driver.findElementByXPath(“\path of the tr in the webtable\”);
iRowCount = iRows.Size();
List<WebElement> iColumns = driver.findElementByXPath(“\….tr[1]td”);
iColCount = iColumns .Size();