### Question:
Table extends AbstractElement { public int getNumberOfRows() { String xPath = getXPathBase() + "tr"; return HtmlElementUtils.locateElements(xPath).size(); } Table(String locator);  Table(String locator, String controlName);  Table(ParentTraits parent, String locator);  Table(String locator, String controlName, ParentTraits parent); synchronized int getDataStartIndex(); int getNumberOfRows(); int getNumberOfColumns(); int getRowIndex(String[] searchKeys); String getValueFromCell(int row, int column); void clickLinkInCell(int row, int column); String getXPathBase(); String getRowText(int rowIndex); void checkCheckboxInCell(int row, int column); void uncheckCheckboxInCell(int row, int column);  }### Answer:
@Test(groups = { "browser-tests" }) @WebTest public void tableTestGetRowCounts() { Grid.driver().get(TestServerUtils.getTestEditableURL()); assertTrue((testTable.getNumberOfRows() == 4), "Validate getNumberOfRows method"); }