Class GridTHTDElement

java.lang.Object
com.vaadin.testbench.TestBenchElement
com.vaadin.flow.component.gridpro.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()
    • innerHTMLContains

      public boolean innerHTMLContains(String key)
    • getColumn

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

      public GridProElement getGrid()
      Gets the grid containing this element.
      Returns:
      the grid for this 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