public class Grid extends DesktopElement
Constructor and Description |
---|
Grid(org.openqa.selenium.WebElement element) |
Modifier and Type | Method and Description |
---|---|
GridRow |
addToSelection(int rowIndex)
Add a row to the selection by index.
|
GridRow |
addToSelection(int columnIndex,
String textToFind)
Add a row to the selection by text in the given column.
|
int |
columnCount()
Gets the total column count.
|
List<org.openqa.selenium.remote.RemoteWebElement> |
columnHeaders()
Gets all column header elements.
|
GridHeader |
getHeader()
Gets the header item.
|
GridRow |
getRowByIndex(int rowIndex)
Get a row by index.
|
GridRow |
getRowByValue(int columnIndex,
String textToFind)
Get a row by text in the given column.
|
List<GridRow> |
getRows()
Returns the rows which are currently visible to UIA.
|
List<GridRow> |
getRowsByValue(int columnIndex,
String value,
int maxItems)
Get all rows where the value of the given column matches the given value.
|
GridRow |
removeFromSelection(int rowIndex)
Remove a row from the selection by index.
|
GridRow |
removeFromSelection(int columnIndex,
String textToFind)
Remove a row from the selection by text in the given column.
|
int |
rowCount()
Gets the total row count.
|
List<org.openqa.selenium.remote.RemoteWebElement> |
rowHeaders()
Gets all row header elements.
|
RowOrColumnMajor |
rowOrColumnMajor()
Gets whether the data should be read primarily by row or by column.
|
GridRow |
select(int rowIndex)
Select a row by index.
|
GridRow |
select(int columnIndex,
String textToFind)
Select the first row by text in the given column.
|
GridRow |
selectedItem()
Gets the first selected item or null otherwise.
|
List<GridRow> |
selectedItems()
Gets all selected items.
|
callValueCommand, callValueCommand, callValueCommand, callValueCommand, callValueCommand, callValueCommand, callVoidCommand, createLocalDateTimeFromResponse, createRemoteWebElementFromResponse, createRemoteWebElementsFromResponse, exe, getActiveWindow, getName, parseDateTime, parseDouble
clear, click, equals, execute, findElement, findElement, findElementByClassName, findElementByCssSelector, findElementById, findElementByLinkText, findElementByName, findElementByPartialLinkText, findElementByTagName, findElementByXPath, findElements, findElements, findElementsByClassName, findElementsByCssSelector, findElementsById, findElementsByLinkText, findElementsByName, findElementsByPartialLinkText, findElementsByTagName, findElementsByXPath, getAttribute, getCoordinates, getCssValue, getId, getLocation, getRect, getScreenshotAs, getSize, getTagName, getText, getWrappedDriver, hashCode, isDisplayed, isEnabled, isSelected, sendKeys, setFileDetector, setFoundBy, setId, setParent, submit, toJson, toString
public int rowCount()
public int columnCount()
public List<org.openqa.selenium.remote.RemoteWebElement> columnHeaders()
public List<org.openqa.selenium.remote.RemoteWebElement> rowHeaders()
public RowOrColumnMajor rowOrColumnMajor()
public GridHeader getHeader()
public List<GridRow> getRows()
public GridRow selectedItem()
public GridRow select(int rowIndex)
rowIndex
- public GridRow select(int columnIndex, String textToFind)
columnIndex
- textToFind
- public GridRow addToSelection(int rowIndex)
rowIndex
- public GridRow addToSelection(int columnIndex, String textToFind)
columnIndex
- textToFind
- public GridRow removeFromSelection(int rowIndex)
rowIndex
- public GridRow removeFromSelection(int columnIndex, String textToFind)
columnIndex
- textToFind
- public GridRow getRowByIndex(int rowIndex)
rowIndex
- public GridRow getRowByValue(int columnIndex, String textToFind)
columnIndex
- textToFind
- public List<GridRow> getRowsByValue(int columnIndex, String value, int maxItems)
columnIndex
- The column index to check.value
- The value to check.maxItems
- Maximum numbers of items to return, 0 for all.Copyright © 2021. All rights reserved.