Class TableElement

  • All Implemented Interfaces:
    com.vaadin.testbench.commands.CanCompareScreenshots, com.vaadin.testbench.commands.CanWaitForVaadin, com.vaadin.testbench.commands.TestBenchElementCommands, com.vaadin.testbench.HasDriver, com.vaadin.testbench.HasSearchContext, com.vaadin.testbench.HasTestBenchCommandExecutor, org.openqa.selenium.SearchContext, org.openqa.selenium.TakesScreenshot, org.openqa.selenium.WebElement, org.openqa.selenium.WrapsElement
    Direct Known Subclasses:
    TreeTableElement

    @Deprecated
    public class TableElement
    extends AbstractSelectElement
    Deprecated.
    • Constructor Detail

      • TableElement

        public TableElement()
        Deprecated.
    • Method Detail

      • getCell

        public com.vaadin.testbench.TestBenchElement getCell​(int row,
                                                             int column)
        Deprecated.
        Function to find a Table cell. Looking for a cell that is currently not visible will throw NoSuchElementException
        Parameters:
        row - 0 based row index
        column - 0 based column index
        Returns:
        TestBenchElement containing wanted cell.
        Throws:
        org.openqa.selenium.NoSuchElementException - if the cell (row, column) is not found.
      • getRow

        public TableRowElement getRow​(int row)
        Deprecated.
        Return table row element by zero-based index.
        Returns:
        table row element by zero-based index
      • getHeaderCell

        public TableHeaderElement getHeaderCell​(int column)
        Deprecated.
        Returns the header cell with the given column index.
        Parameters:
        column - 0 based column index
        Returns:
        TableHeaderElement containing the wanted header cell
      • getFooterCell

        public com.vaadin.testbench.TestBenchElement getFooterCell​(int column)
        Deprecated.
        Function to get footer cell with given column index.
        Parameters:
        column - 0 based column index
        Returns:
        TestBenchElement containing wanted footer cell
      • scroll

        public void scroll​(int scrollTop)
        Deprecated.
        Specified by:
        scroll in interface com.vaadin.testbench.commands.TestBenchElementCommands
        Overrides:
        scroll in class com.vaadin.testbench.TestBenchElement
      • scrollLeft

        public void scrollLeft​(int scrollLeft)
        Deprecated.
        Specified by:
        scrollLeft in interface com.vaadin.testbench.commands.TestBenchElementCommands
        Overrides:
        scrollLeft in class com.vaadin.testbench.TestBenchElement
      • contextClick

        public void contextClick()
        Deprecated.
        Overrides:
        contextClick in class com.vaadin.testbench.TestBenchElement
      • openCollapseMenu

        public TableElement.CollapseMenuElement openCollapseMenu()
        Deprecated.
        Opens the collapse menu of this table and returns the element for it.
        Returns:
        collapse menu element
      • getCollapseMenuToggle

        public org.openqa.selenium.WebElement getCollapseMenuToggle()
        Deprecated.
        Gets the button that shows or hides the collapse menu.
        Returns:
        button for opening collapse menu