public class TableElement extends BaseElement
Constructor and Description |
---|
TableElement(org.openqa.selenium.WebElement table) |
Modifier and Type | Method and Description |
---|---|
List<org.openqa.selenium.WebElement> |
getColumn(int columnNumber) |
List<org.openqa.selenium.WebElement> |
getColumn(String firstEntry) |
int |
getColumnNumber(String firstEntry) |
List<org.openqa.selenium.WebElement> |
getRow(int rowNumber) |
List<org.openqa.selenium.WebElement> |
getRow(String firstEntry) |
int |
getRowNumber(String firstEntry) |
boolean |
isEmpty() |
int |
numberOfColumns() |
int |
numberOfRows() |
getDriver, getUtil, isElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationInProgressMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilPageJSIsLoaded
public boolean isEmpty()
public int numberOfColumns()
public int numberOfRows()
public List<org.openqa.selenium.WebElement> getColumn(String firstEntry)
firstEntry
- text content of the element in the first row (usually a heading).public int getColumnNumber(String firstEntry)
firstEntry
- text content of the element in the first row (usually a heading).public List<org.openqa.selenium.WebElement> getColumn(int columnNumber)
columnNumber
- zero indexed number of the column.public List<org.openqa.selenium.WebElement> getRow(String firstEntry)
firstEntry
- text content of the element in the first column
(a heading if the table has left side headings).public int getRowNumber(String firstEntry)
firstEntry
- text content of the element in the first column
(a heading if the table has left side headings).public List<org.openqa.selenium.WebElement> getRow(int rowNumber)
rowNumber
- zero indexed number of the row.Copyright © 2004–2021 XWiki. All rights reserved.