public MapArray<String, ICell> cellsToRow(Collection<ICell> cells) { return new MapArray<>(cells, cell -> headers().get(cell.columnNum() - 1), cell -> cell); }
public MapArray<String, ICell> cellsToRow(Collection<ICell> cells) { return new MapArray<>(cells, cell -> headers().get(cell.columnNum() - 1), cell -> cell); }
public MapArray<String, ICell> cellsToRow(Collection<ICell> cells) { return new MapArray<>(cells, cell -> headers().get(cell.columnNum() - 1), cell -> cell); }
public MapArray<String, ICell> column(String value, Row row) { ICell columnCell = cell(value, row); if (columnCell == null) { logger.info(format("Can't find any cells in row %s with value %s", row, value)); return null; } return columns().getColumn(columnCell.columnNum()); } public MapArray<String, ICell> columnContains(String value, Row row) {
public MapArray<String, ICell> columnMatch(String regEx, Row row) { ICell columnCell = cellMatch(regEx, row); if (columnCell == null) { logger.info(format("Can't find any cells in row %s that matches regex %s", row, regEx)); return null; } return columns().getColumn(columnCell.columnNum()); }
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> columnMatch(String regEx, Row row) { ICell columnCell = cellMatch(regEx, row); if (columnCell == null) { logger.info(format("Can't find any cells in row %s that matches regex %s", row, regEx)); return null; } return columns().getColumn(columnCell.columnNum()); }
public MapArray<String, ICell> columnContains(String value, Row row) { ICell columnCell = cellContains(value, row); if (columnCell == null) { logger.info(format("Can't find any cells in row %s that contains value %s", row, value)); return null; } return columns().getColumn(columnCell.columnNum()); } public MapArray<String, ICell> columnMatch(String regEx, Row row) {
public MapArray<String, ICell> columnContains(String value, Row row) { ICell columnCell = cellContains(value, row); if (columnCell == null) { logger.info(format("Can't find any cells in row %s that contains value %s", row, value)); return null; } return columns().getColumn(columnCell.columnNum()); } public MapArray<String, ICell> columnMatch(String regEx, Row row) {
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; }
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> column(String value, Row row) { ICell columnCell = cell(value, row); return columnCell != null ? columns().getColumn(columnCell.columnNum()) : null; } public MapArray<String, ICell> columnContains(String value, Row row) {
public MapArray<String, ICell> columnContains(String value, Row row) { ICell columnCell = cellContains(value, row); return columnCell != null ? columns().getColumn(columnCell.columnNum()) : null; } public MapArray<String, ICell> columnMatch(String regEx, Row row) {
public MapArray<String, ICell> column(String value, Row row) { ICell columnCell = cell(value, row); if (columnCell == null) { logger.info(format("Can't find any cells in row %s with value %s", row, value)); return null; } return columns().getColumn(columnCell.columnNum()); } public MapArray<String, ICell> columnContains(String value, Row row) {
public MapArray<String, ICell> columnMatch(String regEx, Row row) { ICell columnCell = cellMatch(regEx, row); return columnCell != null ? columns().getColumn(columnCell.columnNum()) : 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; } }