AgGridHighLevelOperations

public final class AgGridHighLevelOperations

High level utilities for definitions of simplified grids and operations

Constructors

AgGridHighLevelOperations

public AgGridHighLevelOperations(Path gridContainer)

Methods

buildMinimalGridFromHeader

public AgGrid buildMinimalGridFromHeader(List<String> headers)

cellInGrid

public Path cellInGrid(int rowNumber, String columnName)

Ensure a specific cell is visible and return a Path to it

Parameters:
  • rowNumber – row number
  • columnName – column name
Returns:

the request cell

changeSimpleInputValueByRowNumber

public void changeSimpleInputValueByRowNumber(String columnName, int rowNumber, String newValue)

select an option from a dropdown in a cell

Parameters:
  • columnName – column name
  • rowNumber – row number
  • newValue – new Value

changeSimpleInputValueByValue

public void changeSimpleInputValueByValue(String columnName, String oldValue, String newValue)

select an option from a dropdown in a cell

Parameters:
  • columnName – column name
  • oldValue – row number
  • newValue – new Value

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 name
  • value – the value of the cell we are looking for
Returns:

the cell element

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 cell
  • columnTitle
    • the column of the cell
  • expectedValue
    • the value we assert in that 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 name
  • rowNumber – row number
Returns:

the cell

goToEditModeInCell

public Path goToEditModeInCell(String columnName, String value)

Find a cell, and doubleclick it

Parameters:
  • columnName – column name
  • value – value of cell
Returns:

the cell

hoverOverCell

public Path hoverOverCell(int rowNumber, String columnTitle)

Hover over speicic cell, after ensuring it is visible

Parameters:
  • rowNumber
    • row number
  • columnTitle
    • column
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 name
  • rowNumber – row number
  • option – option to choose

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