Package com.vaadin.testbench.elements
Class GridLayoutElement
- java.lang.Object
-
- com.vaadin.testbench.AbstractHasTestBenchCommandExecutor
-
- com.vaadin.testbench.TestBenchElement
-
- com.vaadin.testbench.elementsbase.AbstractElement
-
- com.vaadin.testbench.elements.AbstractComponentElement
-
- com.vaadin.testbench.elements.AbstractComponentContainerElement
-
- com.vaadin.testbench.elements.AbstractLayoutElement
-
- com.vaadin.testbench.elements.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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.vaadin.testbench.elements.AbstractComponentElement
AbstractComponentElement.ReadOnlyException
-
-
Constructor Summary
Constructors Constructor Description GridLayoutElement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.openqa.selenium.WebElementgetCell(int row, int column)Gets the cell element at the given position.longgetColumnCount()Gets the total number of columns in the layout.longgetRowCount()Gets the total number of rows in the layout.-
Methods inherited from class com.vaadin.testbench.elements.AbstractComponentElement
getCaption, getHTML, getStyleAttribute, isReadOnly
-
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
-
-
-
-
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 coordinatecolumn- 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
-
-