public MapArray<String, ICell> cellsToColumn(Collection<ICell> cells) { return new MapArray<>(cells, cell -> headers().get(cell.rowNum() - 1), cell -> cell); }
public MapArray<String, ICell> cellsToColumn(Collection<ICell> cells) { return new MapArray<>(cells, cell -> headers().get(cell.rowNum() - 1), cell -> cell); }
public MapArray<String, ICell> cellsToColumn(Collection<ICell> cells) { return new MapArray<>(cells, cell -> headers().get(cell.rowNum() - 1), cell -> cell); }
public MapArray<String, ICell> row(String value, Column column) { ICell rowCell = cell(value, column); if (rowCell == null) { logger.info(format("Can't find any cells in column %s with value %s", column, value)); return null; } return rows().getRow(rowCell.rowNum()); } public MapArray<String, ICell> rowContains(String value, Column column) {
public MapArray<String, ICell> rowMatch(String regEx, Column column) { ICell rowCell = cellMatch(regEx, column); if (rowCell == null) { logger.info(format("Can't find any cells in column %s that matches regEx: %s", column, regEx)); return null; } return rows().getRow(rowCell.rowNum()); }
private Cell addCell(int colIndex, int rowIndex, int colNum, int rowNum, String colName, String rowName) { Cell cell = allCells.size() != 0 ? (Cell) first(allCells, c -> c.columnNum() == colNum && c.rowNum() == rowNum) : null; if (cell != null) return cell.updateData(colName, rowName); cell = new Cell(colIndex, rowIndex, colNum, rowNum, colName, rowName, this); cell.setParent(this); if (cache) allCells.add(cell); return cell; }
public MapArray<String, ICell> rowMatch(String regEx, Column column) { ICell rowCell = cellMatch(regEx, column); if (rowCell == null) { logger.info(format("Can't find any cells in column %s that matches regEx: %s", column, regEx)); return null; } return rows().getRow(rowCell.rowNum()); }
public MapArray<String, ICell> rowContains(String value, Column column) { ICell rowCell = cellContains(value, column); if (rowCell == null) { logger.info(format("Can't find any cells in column %s that contains value %s", column, value)); return null; } return rows().getRow(rowCell.rowNum()); } public MapArray<String, ICell> rowMatch(String regEx, Column column) {
public MapArray<String, ICell> row(String value, Column column) { ICell rowCell = cell(value, column); return rowCell != null ? rows().getRow(rowCell.rowNum()) : null; } public MapArray<String, ICell> rowContains(String value, Column column) {
private Cell addCell(int colIndex, int rowIndex, int colNum, int rowNum, String colName, String rowName) { Cell cell = (allCells.size() != 0) ? (Cell) first(allCells, c -> c.columnNum() == colNum && c.rowNum() == rowNum) : null; if (cell != null) return cell.updateData(colName, rowName); cell = new Cell(colIndex, rowIndex, colNum, rowNum, colName, rowName, cellLocatorTemplate, this); cell.setParent(this); if (cache) allCells.add(cell); return cell; }
public MapArray<String, ICell> rowContains(String value, Column column) { ICell rowCell = cellContains(value, column); return rowCell != null ? rows().getRow(rowCell.rowNum()) : null; } public MapArray<String, ICell> rowMatch(String regEx, Column column) {
public MapArray<String, ICell> rowContains(String value, Column column) { ICell rowCell = cellContains(value, column); if (rowCell == null) { logger.info(format("Can't find any cells in column %s that contains value %s", column, value)); return null; } return rows().getRow(rowCell.rowNum()); } public MapArray<String, ICell> rowMatch(String regEx, Column column) {
private Cell addCell(int colIndex, int rowIndex, int colNum, int rowNum, String colName, String rowName) { Cell cell = allCells.size() != 0 ? (Cell) first(allCells, c -> c.columnNum() == colNum && c.rowNum() == rowNum) : null; if (cell != null) return cell.updateData(colName, rowName); cell = new Cell(colIndex, rowIndex, colNum, rowNum, colName, rowName, this); cell.setParent(this); if (cache) allCells.add(cell); return cell; }
public MapArray<String, ICell> row(String value, Column column) { ICell rowCell = cell(value, column); if (rowCell == null) { logger.info(format("Can't find any cells in column %s with value %s", column, value)); return null; } return rows().getRow(rowCell.rowNum()); } public MapArray<String, ICell> rowContains(String value, Column column) {
public MapArray<String, ICell> rowMatch(String regEx, Column column) { ICell rowCell = cellMatch(regEx, column); return rowCell != null ? rows().getRow(rowCell.rowNum()) : null; }
private Cell addCell(WebElement webElement, int colNum, int rowNum, String colName, String rowName) { Cell cell = (Cell) first(allCells, c -> c.columnNum() == colNum && c.rowNum() == rowNum); if (cell != null) { cell.setWebElement(webElement); return cell.updateData(colName, rowName); } cell = new Cell(webElement, colNum, rowNum, colName, rowName, this); if (cache) allCells.add(cell); return cell; } }
private Cell addCell(WebElement webElement, int colNum, int rowNum, String colName, String rowName) { Cell cell = (Cell) first(allCells, c -> c.columnNum() == colNum && c.rowNum() == rowNum); if (cell != null) { cell.setWebElement(webElement); return cell.updateData(colName, rowName); } cell = new Cell(webElement, colNum, rowNum, colName, rowName, this); if (cache) allCells.add(cell); return cell; } }
private Cell addCell(WebElement webElement, int colNum, int rowNum, String colName, String rowName) { Cell cell = (Cell) first(allCells, c -> c.columnNum() == colNum && c.rowNum() == rowNum); if (cell != null) { cell.setWebElement(webElement); return cell.updateData(colName, rowName); } cell = new Cell(webElement, colNum, rowNum, colName, rowName, cellLocatorTemplate, this); if (cache) allCells.add(cell); return cell; } }