public boolean waitRows(int count) { return waitCondition(() -> rows().count() >= count); }
public boolean waitRows(int count) { return waitCondition(() -> rows().count() >= count); }
public boolean waitRows(int count) { return waitCondition(() -> rows().count() >= count); }
public final MapArray<String, ICell> getColumn(String colName) { try { int rowsCount = table.rows().count(); List<String> headers = select(table.rows().headers(), String::toLowerCase); List<WebElement> webColumn = timer().getResultByCondition( () -> getLineAction(colName), els -> els.size() == rowsCount); return new MapArray<>(rowsCount, headers::get, value -> table.cell(webColumn.get(value), new Column(colName), new Row(headers.get(value)))); } catch (Exception | Error ex) { throw throwColumnException(colName, ex.getMessage()); } }
public final MapArray<String, ICell> getColumn(String colName) { try { int rowsCount = table.rows().count(); List<String> headers = select(table.rows().headers(), String::toLowerCase); List<WebElement> webColumn = timer().getResultByCondition( () -> getLineAction(colName), els -> els.size() == rowsCount); return new MapArray<>(rowsCount, headers::get, value -> table.cell(webColumn.get(value), new Column(colName), new Row(headers.get(value)))); } catch (Exception | Error ex) { throw throwColumnException(colName, ex.getMessage()); } }
public final MapArray<String, ICell> getColumn(String colName) { try { int rowsCount = table.rows().count(); List<String> headers = table.rows().headers(); List<WebElement> webColumn = timer().getResultByCondition( () -> getLineAction(colName), els -> els.size() == rowsCount); return new MapArray<>(rowsCount, table.rows().headers()::get, value -> table.cell(webColumn.get(value), new Column(colName), new Row(headers.get(value)))); } catch (Exception | Error ex) { throw throwColumnException(colName, ex.getMessage()); } }
public final MapArray<String, ICell> getColumn(int colNum) { if (count() < 0 || count() < colNum || colNum <= 0) throw exception("Can't Get Column '%s'. [num] > RowsCount(%s).", colNum, count()); try { int rowsCount = table.rows().count(); List<WebElement> webColumn = timer().getResultByCondition( () -> getLineAction(colNum), els -> els.size() == rowsCount); return new MapArray<>(rowsCount, key -> table.rows().headers().get(key), value -> table.cell(webColumn.get(value), new Column(colNum), new Row(value + 1))); } catch (Exception | Error ex) { throw throwColumnException(colNum + "", ex.getMessage()); } }
public final MapArray<String, ICell> getColumn(int colNum) { if (colNum <= 0) throw exception("Table indexes starts from 1"); if (count() < 0 || count() < colNum || colNum <= 0) throw exception("Can't Get Column '%s'. [num] > RowsCount(%s).", colNum, count()); try { int rowsCount = table.rows().count(); List<WebElement> webColumn = timer().getResultByCondition( () -> getLineAction(colNum), els -> els.size() == rowsCount); return new MapArray<>(rowsCount, key -> table.rows().headers().get(key), value -> table.cell(webColumn.get(value), new Column(colNum), new Row(value + 1))); } catch (Exception | Error ex) { throw throwColumnException(colNum + "", ex.getMessage()); } }
public final MapArray<String, ICell> getColumn(int colNum) { if (colNum <= 0) throw exception("Table indexes starts from 1"); if (count() < 0 || count() < colNum || colNum <= 0) throw exception("Can't Get Column '%s'. [num] > RowsCount(%s).", colNum, count()); try { int rowsCount = table.rows().count(); List<WebElement> webColumn = timer().getResultByCondition( () -> getLineAction(colNum), els -> els.size() == rowsCount); return new MapArray<>(rowsCount, key -> table.rows().headers().get(key), value -> table.cell(webColumn.get(value), new Column(colNum), new Row(value + 1))); } catch (Exception | Error ex) { throw throwColumnException(colNum + "", ex.getMessage()); } }
public boolean isEmpty() { getDriver().manage().timeouts().implicitlyWait(0, MILLISECONDS); int rowsCount = rows().count(true); getDriver().manage().timeouts().implicitlyWait(timeouts.getCurrentTimeoutSec(), SECONDS); return rowsCount == 0; }
public boolean isEmpty() { getDriver().manage().timeouts().implicitlyWait(0, MILLISECONDS); int rowsCount = rows().count(true); getDriver().manage().timeouts().implicitlyWait(timeouts.getCurrentTimeoutSec(), SECONDS); return rowsCount == 0; }
public boolean isEmpty() { getDriver().manage().timeouts().implicitlyWait(0, MILLISECONDS); int rowsCount = rows().count(true); getDriver().manage().timeouts().implicitlyWait(timeouts.getCurrentTimeoutSec(), SECONDS); return rowsCount == 0; }