Class GridTHTDElement

java.lang.Object
com.vaadin.testbench.TestBenchElement
com.vaadin.flow.component.grid.testbench.GridTHTDElement
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 GridTHTDElement extends TestBenchElement
A TestBench element representing a <td> or <th> element in a grid.
  • Constructor Details

    • GridTHTDElement

      public GridTHTDElement()
  • Method Details

    • getText

      public String getText()
      Specified by:
      getText in interface org.openqa.selenium.WebElement
      Overrides:
      getText in class TestBenchElement
    • getInnerHTML

      public String getInnerHTML()
    • getSlotText

      protected static String getSlotText(TestBenchElement slot)
      Gets the text content of the elements assigned to the given slot
      Parameters:
      slot - a <slot> element
      Returns:
      the combined text content of all elements assigned to the given slot
    • getRow

      public int getRow()
      Gets the row index for this grid cell.
      Returns:
      the row index
    • getColumn

      public GridColumnElement getColumn()
      Gets the column for this grid cell.
      Returns:
      the column element
    • getGrid

      public GridElement getGrid()
      Gets the grid containing this element.
      Returns:
      the grid for this element
    • getRowElement

      public GridTRElement getRowElement()
      Gets the TR parent of this element.
      Returns:
      the parent TR element
    • getContext

      public org.openqa.selenium.SearchContext getContext()
      Description copied from class: TestBenchElement
      Returns this TestBenchElement cast to a SearchContext. Method provided for compatibility and consistency.
      Specified by:
      getContext in interface HasSearchContext
      Overrides:
      getContext in class TestBenchElement
      Returns:
      a SearchContext instance