private List<Integer> findMatchingIndexesFor(List<WebElement> rowElements, BeanMatcher[] matchers) { List<Integer> indexes = new ArrayList<Integer>(); List<String> headings = getHeadings(); int index = 0; for(WebElement row : rowElements) { List<WebElement> cells = cellsIn(row); Map<Object, String> rowData = rowDataFrom(cells, headings); if (matches(rowData, matchers)) { indexes.add(index); } index++; } return indexes; }
private List<Integer> findMatchingIndexesFor(List<WebElement> rowElements, BeanMatcher[] matchers) { List<Integer> indexes = new ArrayList<Integer>(); List<String> headings = getHeadings(); int index = 0; for(WebElement row : rowElements) { List<WebElement> cells = cellsIn(row); Map<Object, String> rowData = rowDataFrom(cells, headings); if (matches(rowData, matchers)) { indexes.add(index); } index++; } return indexes; }
private List<Integer> findMatchingIndexesFor(List<WebElement> rowElements, BeanMatcher[] matchers) { List<Integer> indexes = new ArrayList<Integer>(); List<String> headings = getHeadings(); int index = 0; for(WebElement row : rowElements) { List<WebElement> cells = cellsIn(row); Map<Object, String> rowData = rowDataFrom(cells, headings); if (matches(rowData, matchers)) { indexes.add(index); } index++; } return indexes; }
public List<Map<Object, String>> getRows() { List<Map<Object, String>> results = new ArrayList<Map<Object, String>>(); List<String> headings = getHeadings(); List<WebElement> rows = getRowElementsFor(headings); for (WebElement row : rows) { List<WebElement> cells = cellsIn(row); if (enoughCellsFor(headings).in(cells)) { results.add(rowDataFrom(cells, headings)); } } return results; }
public List<Map<Object, String>> getRows() { List<Map<Object, String>> results = new ArrayList<Map<Object, String>>(); List<String> headings = getHeadings(); List<WebElement> rows = getRowElementsFor(headings); for (WebElement row : rows) { List<WebElement> cells = cellsIn(row); if (enoughCellsFor(headings).in(cells)) { results.add(rowDataFrom(cells, headings)); } } return results; }
public List<Map<Object, String>> getRows() { List<Map<Object, String>> results = new ArrayList<>(); List<String> headings = getHeadings(); List<WebElement> rows = getRowElementsFor(headings); for (WebElement row : rows) { List<WebElement> cells = cellsIn(row); if (enoughCellsFor(headings).in(cells)) { results.add(rowDataFrom(cells, headings)); } } return results; }