Selenium WebDriver - How to count total number of rows of a table using Selenium 2.0?
Selenium WebDriver Interview question and Answers
(Continued from previous question...)
Selenium WebDriver - How to count total number of rows of a table using Selenium 2.0?
List {WebElement} rows = driver.findElements(By.className("//table[@id='tableID']/tr"));
int totalRow = rows.size();
(Continued on next question...)
Other Interview Questions
|