Class AgGridHighLevelOperations
- java.lang.Object
-
- com.github.loyada.jdollarx.singlebrowser.AgGridHighLevelOperations
-
public final class AgGridHighLevelOperations extends Object
High level utilities for definitions of simplified grids and operations
-
-
Constructor Summary
Constructors Constructor Description AgGridHighLevelOperations(Path gridContainer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AgGridbuildMinimalGridFromHeader(List<String> headers)PathcellInGrid(int rowNumber, String columnName)Ensure a specific cell is visible and return a Path to itvoidchangeSimpleInputValueByRowNumber(String columnName, int rowNumber, String newValue)select an option from a dropdown in a cellvoidchangeSimpleInputValueByValue(String columnName, String oldValue, String newValue)select an option from a dropdown in a cellPathclickOnColumnWithValue(String columnName, String value)Find a the first cell in the given column with the given value, ensure it is visible, and click on it.PathclickOnTextInsideColumnWithValue(String columnName, String value)Find a the first cell in the given column with the given value, ensure it is visible, and click on the text inside it.voidensureCellValueIsPresent(int rowNumber, String columnTitle, String expectedValue)Ensure(or assert) that the cell in specific row and column has the expected valueAgGridgetMinimalGrid(String columnName)create a minimal grid definition that has the column we are interersted inPathgoToEditModeInCell(String columnName, int rowNumber)Find a cell, and doubleclick itPathgoToEditModeInCell(String columnName, String value)Find a cell, and doubleclick itPathhoverOverCell(int rowNumber, String columnTitle)Hover over speicic cell, after ensuring it is visiblevoidselectInCell(String columnName, int rowNumber, String option)select an option from a dropdown in a cellAgGridunorderedGrid(List<Map<String,String>> rows)define AgGrid with unordered rows
-
-
-
Constructor Detail
-
AgGridHighLevelOperations
public AgGridHighLevelOperations(Path gridContainer)
-
-
Method Detail
-
ensureCellValueIsPresent
public void ensureCellValueIsPresent(int rowNumber, String columnTitle, String expectedValue)Ensure(or assert) that the cell in specific row and column has the expected value- Parameters:
rowNumber- - number of row of the cellcolumnTitle- - the column of the cellexpectedValue- - the value we assert in that cell
-
hoverOverCell
public Path hoverOverCell(int rowNumber, String columnTitle)
Hover over speicic cell, after ensuring it is visible- Parameters:
rowNumber- - row numbercolumnTitle- - column- Returns:
- the cell
-
unorderedGrid
public AgGrid unorderedGrid(List<Map<String,String>> rows)
define AgGrid with unordered rows- Parameters:
rows- a list of the rows, ignoring the order- Returns:
- an AgGrid object
-
clickOnColumnWithValue
public Path clickOnColumnWithValue(String columnName, String value)
Find a the first cell in the given column with the given value, ensure it is visible, and click on it.- Parameters:
columnName- the column namevalue- the value of the cell we are looking for- Returns:
- the cell element
-
clickOnTextInsideColumnWithValue
public Path clickOnTextInsideColumnWithValue(String columnName, String value)
Find a the first cell in the given column with the given value, ensure it is visible, and click on the text inside it.- Parameters:
columnName- the column namevalue- the value of the cell we are looking for- Returns:
- the cell element
-
cellInGrid
public Path cellInGrid(int rowNumber, String columnName)
Ensure a specific cell is visible and return a Path to it- Parameters:
rowNumber- row numbercolumnName- column name- Returns:
- the request cell
-
getMinimalGrid
public AgGrid getMinimalGrid(String columnName)
create a minimal grid definition that has the column we are interersted in- Parameters:
columnName- the column name- Returns:
- a grid object
-
goToEditModeInCell
public Path goToEditModeInCell(String columnName, int rowNumber)
Find a cell, and doubleclick it- Parameters:
columnName- column namerowNumber- row number- Returns:
- the cell
-
goToEditModeInCell
public Path goToEditModeInCell(String columnName, String value)
Find a cell, and doubleclick it- Parameters:
columnName- column namevalue- value of cell- Returns:
- the cell
-
selectInCell
public void selectInCell(String columnName, int rowNumber, String option)
select an option from a dropdown in a cell- Parameters:
columnName- column namerowNumber- row numberoption- option to choose
-
changeSimpleInputValueByRowNumber
public void changeSimpleInputValueByRowNumber(String columnName, int rowNumber, String newValue) throws Operations.OperationFailedException
select an option from a dropdown in a cell- Parameters:
columnName- column namerowNumber- row numbernewValue- new Value- Throws:
Operations.OperationFailedException
-
changeSimpleInputValueByValue
public void changeSimpleInputValueByValue(String columnName, String oldValue, String newValue) throws Operations.OperationFailedException
select an option from a dropdown in a cell- Parameters:
columnName- column nameoldValue- row numbernewValue- new Value- Throws:
Operations.OperationFailedException
-
-