public class TreeGridElement extends GridElement
| Constructor and Description |
|---|
TreeGridElement() |
| Modifier and Type | Method and Description |
|---|---|
void |
collapseWithClick(int rowIndex)
Collapses the row at the given index in the grid.
|
void |
collapseWithClick(int rowIndex,
int hierarchyColumnIndex)
Collapses the row at the given index in the grid with the given
hierarchical column index.
|
void |
expandWithClick(int rowIndex)
Expands the row at the given index in the grid.
|
void |
expandWithClick(int rowIndex,
int hierarchyColumnIndex)
Expands the row at the given index in the grid with the given
hierarchical column index.
|
GridTHTDElement |
getCellWaitForRow(int rowIndex,
GridColumnElement column)
Gets the grid cell for the given row and column.
|
GridTHTDElement |
getCellWaitForRow(int rowIndex,
int colIndex)
Gets the grid cell for the given row and column index.
|
org.openqa.selenium.WebElement |
getComponentRendererElement(int rowIndex,
int columnIndex)
Gets the 'flow-component-renderer' element for the given row.
|
org.openqa.selenium.WebElement |
getExpandToggleElement(int rowIndex,
int hierarchyColumnIndex)
Gets the 'vaadin-grid-tree-toggle' element for the given row.
|
long |
getNumberOfExpandedRows()
Returns a number of expanded rows in the grid element.
|
boolean |
hasComponentRenderer(int rowIndex,
int columnIndex,
org.openqa.selenium.By searchContentBy)
Check whether the given indices correspond to a cell that contains a
visible component renderer with the optional search locator
By. |
boolean |
hasExpandToggle(int rowIndex,
int hierarchyColumnIndex)
Check whether the given indices correspond to a cell that contains a
visible hierarchy toggle element.
|
boolean |
hasRow(int row)
Returns true if given index has tr element for the row
|
boolean |
isDetailsOpen(int rowIndex)
Returns
true if details are open or the given row index. |
protected boolean |
isLoading() |
boolean |
isLoadingExpandedRows()
Returns true if grid is loading expanded rows.
|
boolean |
isRowCollapsed(int rowIndex,
int hierarchyColumnIndex)
Returns whether the row at the given index is collapsed or not.
|
boolean |
isRowExpanded(int rowIndex,
int hierarchyColumnIndex)
Returns whether the row at the given index is expanded or not.
|
void |
scrollToRowAndWait(int row)
Scrolls to the row with the given index.
|
deselect, findInShadowRoot, generatedColumnIdsIfNeeded, getAllColumns, getCell, getCell, getCell, getCells, getCells, getColumn, getFirstVisibleRowIndex, getFooterCell, getHeaderCell, getHeaderCellContent, getLastVisibleRowIndex, getPageSize, getRow, getRowCount, getRows, getVisibleColumns, getVisibleRows, scrollToRow, select, waitUntilLoadingFinishedcallFunction, 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 scrollToRowAndWait(int row)
row - the row to scroll topublic GridTHTDElement getCellWaitForRow(int rowIndex, int colIndex)
For the column index, only visible columns are taken into account.
Automatically scrolls the given row into view and waits for the row to load.
rowIndex - the row indexcolIndex - the column indexpublic GridTHTDElement getCellWaitForRow(int rowIndex, GridColumnElement column)
Automatically scrolls the given row into view and waits for the row to load.
rowIndex - the row indexcolumn - the column element for the columnpublic void expandWithClick(int rowIndex)
rowIndex - 0-based row index to expandexpandWithClick(int, int)public void expandWithClick(int rowIndex,
int hierarchyColumnIndex)
rowIndex - 0-based row index to expandhierarchyColumnIndex - 0-based index of the hierarchy columnpublic void collapseWithClick(int rowIndex)
rowIndex - 0-based row index to collapsecollapseWithClick(int, int)public void collapseWithClick(int rowIndex,
int hierarchyColumnIndex)
rowIndex - 0-based row index to collapsehierarchyColumnIndex - 0-based index of the hierarchy columnpublic boolean isRowExpanded(int rowIndex,
int hierarchyColumnIndex)
rowIndex - 0-based row indexhierarchyColumnIndex - 0-based index of the hierarchy columntrue if expanded, false if collapsedpublic boolean isRowCollapsed(int rowIndex,
int hierarchyColumnIndex)
rowIndex - 0-based row indexhierarchyColumnIndex - 0-based index of the hierarchy columntrue if collapsed, false if expandedpublic boolean hasComponentRenderer(int rowIndex,
int columnIndex,
org.openqa.selenium.By searchContentBy)
By.rowIndex - 0-based row indexcolumnIndex - 0-based index of the columnsearchContentBy - Search for specific content. May be null.true if this cell has the component renderer visible with
the optional search locatorpublic boolean hasExpandToggle(int rowIndex,
int hierarchyColumnIndex)
rowIndex - 0-based row indexhierarchyColumnIndex - 0-based index of the hierarchy columntrue if this cell has the expand toggle visiblepublic org.openqa.selenium.WebElement getExpandToggleElement(int rowIndex,
int hierarchyColumnIndex)
rowIndex - 0-based row indexhierarchyColumnIndex - 0-based index of the hierarchy columnspan element that is clicked for expanding/collapsing
a rowsorg.openqa.selenium.NoSuchElementException - if there is no expand element for this rowpublic org.openqa.selenium.WebElement getComponentRendererElement(int rowIndex,
int columnIndex)
rowIndex - 0-based row indexcolumnIndex - 0-based index of the columnorg.openqa.selenium.NoSuchElementException - if there is no component renderer element for this rowpublic long getNumberOfExpandedRows()
public boolean isDetailsOpen(int rowIndex)
true if details are open or the given row index.rowIndex - the 0-based row indextrue if details are shown in the target rowpublic boolean hasRow(int row)
row - the row indextrue if there is tr element for the row,
false otherwisepublic boolean isLoadingExpandedRows()
true if grid is loading expanded rows,
false otherwiseprotected boolean isLoading()
isLoading in class GridElementCopyright © 2025. All rights reserved.