Class GridLayoutElement

  • 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

    public class GridLayoutElement
    extends AbstractLayoutElement
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.openqa.selenium.WebElement getCell​(int row, int column)
      Gets the cell element at the given position.
      long getColumnCount()
      Gets the total number of columns in the layout.
      long getRowCount()
      Gets the total number of rows in the layout.
      • Methods inherited from class com.vaadin.testbench.TestBenchElement

        clear, click, click, clickHiddenElement, compareScreen, compareScreen, compareScreen, contextClick, doubleClick, equals, findElement, findElements, focus, getAccessibleName, getAriaRole, getAttribute, getCapabilities, getClassNames, getCommandExecutor, getContext, getCssValue, getDomAttribute, getDriver, getId, getLocation, getRect, getScreenshotAs, getShadowRoot, getSize, getTagName, getText, getWrappedElement, hasAttribute, hasClassName, hashCode, init, init, isChrome, isDisplayed, isEnabled, isFirefox, isFocused, isSelected, scroll, scrollIntoView, scrollLeft, sendKeys, showTooltip, submit, waitForVaadin, waitUntil, waitUntil, wrap, wrapElement, wrapElements
      • Methods inherited from class com.vaadin.testbench.AbstractHasTestBenchCommandExecutor

        $, $$, isElementPresent, isElementPresent
      • Methods inherited from interface org.openqa.selenium.WebElement

        getDomProperty
    • Constructor Detail

      • GridLayoutElement

        public GridLayoutElement()
    • Method Detail

      • getRowCount

        public long getRowCount()
        Gets the total number of rows in the layout.
        Returns:
        the number of rows in the layout
        Since:
        8.0.6
      • getColumnCount

        public long getColumnCount()
        Gets the total number of columns in the layout.
        Returns:
        the number of columns in the layout
        Since:
        8.0.6
      • getCell

        public org.openqa.selenium.WebElement getCell​(int row,
                                                      int column)
        Gets the cell element at the given position.
        Parameters:
        row - the row coordinate
        column - the column coordinate
        Returns:
        the cell element at the given position
        Throws:
        org.openqa.selenium.NoSuchElementException - if no cell was found at the given position
        Since:
        8.0.6