public class AgGrid extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
AgGrid.AgGridBuilder |
| Modifier and Type | Field and Description |
|---|---|
static Path |
CELL |
static String |
COL_ID |
static Path |
HEADER_CELL |
static Path |
HEADER_TXT |
static Path |
ROW |
| Modifier and Type | Method and Description |
|---|---|
void |
clickMenuOfHeader(String headerText)
Click on the menu of a the column with the given header
|
void |
clickOnSort(String headerText)
Click on the 'sort' column with the given header
|
Path |
ensureVisibilityOfCellInColumn(String columnTitle,
ElementProperty cellContent)
Find a specific cell under a column, without knowing the row, ensure it is
displayed, and return its Path
|
Path |
ensureVisibilityOfRowWithIndex(int n)
Scroll until the row with the given index is visible, and return a Path element that matches it.
|
Path |
ensureVisibilityOfRowWithIndexAndColumn(int index,
String columnTitle)
Scroll until the row with the given index, as well as the given column, is visible.
|
int |
findRowIndex(Map<String,ElementProperty> row)
Find internal index of row within table.
|
void |
findTableInBrowser() |
static AgGrid.AgGridBuilder |
getBuilder() |
int |
getRowIndex(Path row)
assuming the row is already present in the DOM, get its internal index in the table.
|
int |
getRowIndexOfCell(Path cell)
assuming the row is already present in the DOM, get its internal index in the table.
|
Path |
getVisibleHeaderPath(String headerText)
Make sure the given column header is visible, and returns a Path element to access it.
|
boolean |
isVirtualized() |
void |
overrideTimeoutDuringOperation(int millisecs)
Override the default timeout threshold for finding elements while scrolling the table.
|
void |
overrideTimeoutWhenDone(int millisecs)
Override the default timeout threshold it reverts to when table operations are done.
|
void |
setFinalTimeout() |
void |
setScrollStep(int size)
Override the default step size of scrolling when moving through a grid
|
String |
toString() |
public static final String COL_ID
public static final Path HEADER_CELL
public static final Path HEADER_TXT
public static final Path ROW
public static final Path CELL
public static AgGrid.AgGridBuilder getBuilder()
public boolean isVirtualized()
public void setScrollStep(int size)
size - step size in pixelspublic void overrideTimeoutDuringOperation(int millisecs)
millisecs - - the timeout in millisecondspublic void overrideTimeoutWhenDone(int millisecs)
millisecs - - the timeout in millisecondspublic void clickMenuOfHeader(String headerText)
headerText - - the header textpublic void clickOnSort(String headerText)
headerText - - the header textpublic Path getVisibleHeaderPath(String headerText)
headerText - - the header textpublic void setFinalTimeout()
public Path ensureVisibilityOfRowWithIndex(int n)
n - the number of row in the table, as visible to the userpublic Path ensureVisibilityOfRowWithIndexAndColumn(int index, String columnTitle)
index - the number of row in the table, as visible to the usercolumnTitle - the header title of the wanted cell in the rowpublic int getRowIndex(Path row)
row - the row we are interested in. Should be the value returned from findRowInBrowser() or ensureVisibilityOfRowWithIndex()public int getRowIndexOfCell(Path cell)
cell - - the cell in the row we are interested in. Should be the return value of ensureVisibilityOfRowWithIndexAndColumn()public int findRowIndex(Map<String,ElementProperty> row)
row - - the definition of the row contentpublic Path ensureVisibilityOfCellInColumn(String columnTitle, ElementProperty cellContent)
columnTitle - the title of the column to look undercellContent - a property that describes the content of the expect cellpublic void findTableInBrowser()
Copyright © 2019. All rights reserved.