Class GridSorterElement

java.lang.Object
com.vaadin.testbench.TestBenchElement
com.vaadin.flow.component.grid.testbench.GridSorterElement
All Implemented Interfaces:
CanCompareScreenshots, HasCallFunction, HasDriver, HasElementQuery, HasPropertySettersGetters, HasSearchContext, HasTestBenchCommandExecutor, org.openqa.selenium.SearchContext, org.openqa.selenium.TakesScreenshot, org.openqa.selenium.WebElement, org.openqa.selenium.WrapsElement

public class GridSorterElement extends TestBenchElement
A TestBench element representing a <vaadin-grid-sorter> element in a grid header cell.

Use TestBenchElement.click() to toggle the sort direction of the column, the same way as a user clicking the sort indicator.

  • Constructor Details

    • GridSorterElement

      public GridSorterElement()
  • Method Details

    • isAscending

      public boolean isAscending()
      Gets whether the column is sorted in ascending order.
      Returns:
      true if the sort direction is ascending, false otherwise
    • isDescending

      public boolean isDescending()
      Gets whether the column is sorted in descending order.
      Returns:
      true if the sort direction is descending, false otherwise