Class DataGrid

All Implemented Interfaces:
SpecificConditionHandler, ByLocator, SelenideElementWrapper<DataGrid>

public class DataGrid extends AbstractComponent<DataGrid>
Web-element wrapper for data grid. Supports selecting all rows, getting rows, getting header rows, getting cells, getting header cells and clicking on rows.
  • Field Details

  • Constructor Details

    • DataGrid

      public DataGrid(org.openqa.selenium.By by)
  • Method Details

    • clickSelectAll

      public DataGrid clickSelectAll()
      Clicks on the select all checkbox.
      Returns:
      this to call fluent API
    • getRowByIndex

      public DataGrid.Row getRowByIndex(int index)
      Parameters:
      index - row index to get (indexing starts with 0)
      Returns:
      DataGrid.Row web-element wrapper
    • getRowBy

      public DataGrid.Row getRowBy(org.openqa.selenium.By by)
      Parameters:
      by - By selector to find the row
      Returns:
      DataGrid.Row web-element wrapper
    • getHeaderRow

      public DataGrid.HeaderRow getHeaderRow(int index)
      Parameters:
      index - header row index to get (indexing start with 0)
      Returns:
      DataGrid.HeaderRow web-element wrapper
    • getHeaderRowBy

      public DataGrid.HeaderRow getHeaderRowBy(org.openqa.selenium.By by)
      Parameters:
      by - By selector to find the header row
      Returns:
      DataGrid.HeaderRow web-element wrapper
    • getCellByIndex

      public DataGrid.Cell getCellByIndex(int rowIndex, int colIndex)
      Parameters:
      rowIndex - cell row index (indexing start with 0)
      colIndex - cell column index (indexing start with 0)
      Returns:
      DataGrid.Cell web-element wrapper
    • getCellBy

      public DataGrid.Cell getCellBy(org.openqa.selenium.By by)
      Parameters:
      by - By select to find the cell
      Returns:
      DataGrid.Cell web-element wrapper
    • getHeaderCellByIndex

      public DataGrid.HeaderCell getHeaderCellByIndex(int rowIndex, int colIndex)
      Parameters:
      rowIndex - header cell row index (indexing start with 0)
      colIndex - header cell column index (indexing start with 0)
      Returns:
      DataGrid.HeaderCell web-element wrapper
    • getHeaderCellBy

      public DataGrid.HeaderCell getHeaderCellBy(org.openqa.selenium.By by)
      Parameters:
      by - By select to find the header cell
      Returns:
      DataGrid.HeaderCell web-element wrapper
    • clickRow

      public DataGrid clickRow(org.openqa.selenium.By by)
      Clicks on the DataGrid.Row if it is possible.
      Parameters:
      by - By selector to find DataGrid.Row web-element
      Returns:
      this to call fluent API
    • getHostCssSelector

      protected String getHostCssSelector()
    • getSelectAllCheckbox

      protected com.codeborne.selenide.SelenideElement getSelectAllCheckbox()
    • isMultiSelect

      protected boolean isMultiSelect()