Class AbstractTable<T extends Row>
java.lang.Object
org.primefaces.selenium.AbstractPrimePageFragment
org.primefaces.selenium.component.base.AbstractComponent
org.primefaces.selenium.component.base.AbstractPageableData
org.primefaces.selenium.component.base.AbstractTable<T>
- All Implemented Interfaces:
org.openqa.selenium.SearchContext,org.openqa.selenium.TakesScreenshot,org.openqa.selenium.WebElement,org.openqa.selenium.WrapsElement
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidFilter the column by its index.voidFilter the column by its header text.getCell(int rowIndex, int colIndex) Gets the Cell at the row/column coordinates.org.openqa.selenium.WebElementabstract TgetRow(int index) List<org.openqa.selenium.WebElement> org.openqa.selenium.WebElementGets the Select All checkbox in the header of the table.voidremoveFilter(int cellIndex) Removes the current filter at this column index.voidremoveFilter(String headerText) Removes the current filter for a column with the header textvoidsort(int index) Sorts the column found by its index.voidSorts the column found by its header text.voidIf using multiple checkbox mode this toggles the Select All checkbox in the header.Methods inherited from class org.primefaces.selenium.component.base.AbstractPageableData
getPaginator, getPaginatorWebElement, selectPage, selectPage, selectRowsPerPageMethods inherited from class org.primefaces.selenium.component.base.AbstractComponent
destroy, getWidgetByIdScript, getWidgetConfiguration, getWidgetConfigurationAsString, isAjaxified, isAjaxifiedMethods inherited from class org.primefaces.selenium.AbstractPrimePageFragment
getElementLocator, getId, getRoot, getWebDriver, getWrappedElement, setElementLocator, setWebDriverMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openqa.selenium.TakesScreenshot
getScreenshotAsMethods inherited from interface org.openqa.selenium.WebElement
clear, click, findElement, findElements, getAccessibleName, getAriaRole, getAttribute, getCssValue, getDomAttribute, getDomProperty, getLocation, getRect, getShadowRoot, getSize, getTagName, getText, isDisplayed, isEnabled, isSelected, sendKeys, submit
-
Constructor Details
-
AbstractTable
public AbstractTable()
-
-
Method Details
-
getRowsWebElement
- Specified by:
getRowsWebElementin classAbstractPageableData
-
getRow
-
getCell
Gets the Cell at the row/column coordinates.- Parameters:
rowIndex- the index of the rowcolIndex- the index of the column in the row- Returns:
- the
Cellrepresenting these coordinates - Throws:
IndexOutOfBoundsException- if either row or column not found
-
getHeaderWebElement
public org.openqa.selenium.WebElement getHeaderWebElement() -
getHeader
-
sort
Sorts the column found by its header text. It toggles to the next sort direction.- Parameters:
headerText- the header text to look for
-
sort
public void sort(int index) Sorts the column found by its index. It toggles to the next sort direction.- Parameters:
index- the index of the column
-
filter
Filter the column by its index.- Parameters:
cellIndex- the index of the columnfilterValue- the value to pass to the filter
-
filter
-
removeFilter
public void removeFilter(int cellIndex) Removes the current filter at this column index.- Parameters:
cellIndex- the index of the column
-
removeFilter
Removes the current filter for a column with the header text- Parameters:
headerText- the header text to look for
-
toggleSelectAllCheckBox
public void toggleSelectAllCheckBox()If using multiple checkbox mode this toggles the Select All checkbox in the header. -
getSelectAllCheckBox
public org.openqa.selenium.WebElement getSelectAllCheckBox()Gets the Select All checkbox in the header of the table.- Returns:
- the WebElement representing the checkbox
-