public class GridProElement
extends com.vaadin.testbench.TestBenchElement
<vaadin-grid-pro>
element.| Constructor and Description |
|---|
GridProElement() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
generatedColumnIdsIfNeeded() |
GridTHTDElement |
getCell(int rowIndex,
GridProColumnElement column)
Gets the grid cell for the given row and column.
|
GridTHTDElement |
getCell(int rowIndex,
int colIndex)
Gets the grid cell for the given row and column index.
|
int |
getFirstVisibleRowIndex()
Gets the index of the first row which is at least partially visible.
|
GridTHTDElement |
getHeaderCell(int columnIndex)
Gets the header cell for the given visible column index.
|
com.vaadin.testbench.TestBenchElement |
getHeaderCellContent(int rowIndex,
int columnIndex)
Finds the vaadin-grid-cell-content element for the given row and column
in header.
|
int |
getLastVisibleRowIndex()
Gets the index of the last row which is at least partially visible.
|
GridTRElement |
getRow(int rowIndex)
Gets the
tr element for the given row index. |
List<GridProColumnElement> |
getVisibleColumns()
Gets the currently visible columns in the grid, including any selection
checkbox column.
|
void |
scrollToRow(int row)
Scrolls to the row with the given index.
|
callFunction, clear, click, click, compareScreen, compareScreen, compareScreen, contextClick, dispatchEvent, dispatchEvent, doubleClick, equals, executeScript, findElement, findElements, focus, getAttribute, getCapabilities, getClassNames, getCommandExecutor, getContext, getCssValue, getDriver, getLocation, getProperty, getPropertyBoolean, getPropertyDouble, getPropertyElement, getPropertyElements, getPropertyInteger, getPropertyString, getRect, getScreenshotAs, getSize, getTagName, getText, getWrappedElement, hasAttribute, hasClassName, hashCode, init, init, isChrome, isDisplayed, isEnabled, isFirefox, isIE, isSelected, scroll, scrollIntoView, scrollLeft, sendKeys, setProperty, setProperty, setProperty, setProperty, submit, waitForVaadin, waitUntil, waitUntil, wrap, wrapElement, wrapElementspublic void scrollToRow(int row)
row - the row to scroll topublic int getFirstVisibleRowIndex()
public GridTHTDElement getCell(int rowIndex, int colIndex)
For the column index, only visible columns are taken into account.
Automatically scrolls the given row into view
rowIndex - the row indexcolIndex - the column indexpublic GridTHTDElement getCell(int rowIndex, GridProColumnElement column)
Automatically scrolls the given row into view
rowIndex - the row indexcolumn - the column element for the columnpublic int getLastVisibleRowIndex()
public GridTHTDElement getHeaderCell(int columnIndex)
columnIndex - the index of the columnpublic com.vaadin.testbench.TestBenchElement getHeaderCellContent(int rowIndex,
int columnIndex)
rowIndex - the index of the row in the headercolumnIndex - the index of the column in the headerpublic GridTRElement getRow(int rowIndex)
tr element for the given row index.rowIndex - the row indexprotected void generatedColumnIdsIfNeeded()
public List<GridProColumnElement> getVisibleColumns()
Copyright © 2021. All rights reserved.