public List<Row> getRows() {
        return getRowsWebElement().stream()
                .filter(rowElt -> !PrimeSelenium.hasCssClass(rowElt, "ui-datatable-empty-message")
                        && !PrimeSelenium.hasCssClass(rowElt, "ui-expanded-row-content"))
                .map(rowElt -> {
                    List<Cell> cells = rowElt.findElements(By.tagName("td")).stream().map(cellElt -> new Cell(cellElt)).collect(Collectors.toList());
                    return new Row(rowElt, cells);
                }).collect(Collectors.toList());
    }
Component wrapper for the PrimeFaces {@code p:dataTable}.
primefaces-selenium/primefaces-selenium-components/src/main/java/org/primefaces/selenium/component/DataTable.java