com.vaadin.flow.component.grid.testbench.

Class GridTHTDElement

    • Constructor Detail

      • GridTHTDElement

        public GridTHTDElement()
    • Method Detail

      • 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

      • getText

        public String getText()

        Specified by:

        getText in interface org.openqa.selenium.WebElement

        Overrides:

        getText in class TestBenchElement

      • 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