/** * Finds and return the row with the specified id. * * @param id the id of the row * @return the row with the specified id * @exception ElementNotFoundException If the row cannot be found. */ public final HtmlTableRow getRowById(final String id) throws ElementNotFoundException { for (final HtmlTableRow row : getRowIterator()) { if (row.getId().equals(id)) { return row; } } throw new ElementNotFoundException("tr", "id", id); }
/** * Finds and return the row with the specified id. * * @param id the id of the row * @return the row with the specified id * @exception ElementNotFoundException If the row cannot be found. */ public final HtmlTableRow getRowById(final String id) throws ElementNotFoundException { for (final HtmlTableRow row : getRowIterator()) { if (row.getId().equals(id)) { return row; } } throw new ElementNotFoundException("tr", "id", id); }