public class LiveTableElement extends BaseElement
Constructor and Description |
---|
LiveTableElement(String livetableId) |
Modifier and Type | Method and Description |
---|---|
void |
clickAction(String actionName,
int rowNumber)
Clicks a form element (usually a button) with the passed name at the passed row number.
|
ViewPage |
clickCell(int rowNumber,
int columnNumber) |
void |
filterColumn(String inputId,
String filterValue) |
org.openqa.selenium.WebElement |
getCell(int rowNumber,
int columnNumber) |
org.openqa.selenium.WebElement |
getCell(org.openqa.selenium.WebElement rowElement,
int columnNumber) |
int |
getColumnIndex(String columnTitle) |
String |
getFilterValue(String inputId) |
org.openqa.selenium.WebElement |
getRow(int rowNumber) |
int |
getRowCount() |
boolean |
hasColumn(String columnTitle) |
boolean |
hasExactRows(String columnTitle,
List<String> columnValues)
Checks if there are as many rows as there are passed values and check that the values match.
|
boolean |
hasRow(String columnTitle,
String columnValue)
Checks if there is a row that has the given value for the specified column.
|
boolean |
isReady() |
void |
sortAscending(String columnTitle)
Sorts the live table on the specified column, by ascending order.
|
void |
sortBy(String columnTitle)
Sorts the live table on the specified column.
|
void |
sortDescending(String columnTitle)
Sorts the live table on the specified column, by ascending order.
|
void |
waitUntilReady()
Wait till the livetable has finished displaying all its rows (so that we can then assert the livetable content
without running the risk that the rows have not been updated yet).
|
void |
waitUntilRowCountGreaterThan(int minimalExpectedRowCount) |
void |
waitUntilRowCountGreaterThan(int minimalExpectedRowCount,
int timeout)
Same as
waitUntilRowCountGreaterThan(int, int) but with a specific timeout (ie not using the default
timeout) |
getDriver, getUtil, isElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationInProgressMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilPageJSIsLoaded
public LiveTableElement(String livetableId)
public boolean isReady()
public void waitUntilReady()
public boolean hasColumn(String columnTitle)
public String getFilterValue(String inputId)
inputId
- the filter input identifierfilterColumn(String, String)
public int getColumnIndex(String columnTitle)
columnTitle
- the title of live table columnpublic boolean hasRow(String columnTitle, String columnValue)
columnTitle
- the title of live table columncolumnValue
- the value to match rows againsttrue
if there is a row that matches the given value for the specified column, false
otherwisepublic boolean hasExactRows(String columnTitle, List<String> columnValues)
public int getRowCount()
public org.openqa.selenium.WebElement getRow(int rowNumber)
public org.openqa.selenium.WebElement getCell(org.openqa.selenium.WebElement rowElement, int columnNumber)
public org.openqa.selenium.WebElement getCell(int rowNumber, int columnNumber)
public ViewPage clickCell(int rowNumber, int columnNumber)
public void waitUntilRowCountGreaterThan(int minimalExpectedRowCount)
public void waitUntilRowCountGreaterThan(int minimalExpectedRowCount, int timeout)
waitUntilRowCountGreaterThan(int, int)
but with a specific timeout (ie not using the default
timeout)public void sortBy(String columnTitle)
columnTitle
- the column to sort onpublic void sortAscending(String columnTitle)
columnTitle
- the column to sort onpublic void sortDescending(String columnTitle)
columnTitle
- the column to sort onpublic void clickAction(String actionName, int rowNumber)
actionName
- the HTML form element name attribute valuerowNumber
- the LT row number (starts at 1)Copyright © 2004–2021 XWiki. All rights reserved.