T
- table row typepublic abstract class InfiniteScrollTableComponent<T> extends Object
Modifier and Type | Field and Description |
---|---|
protected com.atlassian.pageobjects.elements.PageElementFinder |
elementFinder |
Constructor and Description |
---|
InfiniteScrollTableComponent(String containerCssSelector) |
Modifier and Type | Method and Description |
---|---|
protected abstract T |
convertRow(com.atlassian.pageobjects.elements.PageElement row,
List<com.atlassian.pageobjects.elements.PageElement> previousRows)
Convert the given
PageElement to a typed table row instance. |
List<T> |
getAllTableRows()
Obtain all table rows.
|
protected com.atlassian.pageobjects.elements.PageElement |
getTable() |
void |
scrollTop()
Scroll the viewport to the very top of the page.
|
protected void |
waitUntilCurrentRowsLoaded()
Waits until all rows currently present in the table have been fully loaded.
|
@Inject protected com.atlassian.pageobjects.elements.PageElementFinder elementFinder
public InfiniteScrollTableComponent(String containerCssSelector)
@NotNull protected abstract T convertRow(@NotNull com.atlassian.pageobjects.elements.PageElement row, @NotNull List<com.atlassian.pageobjects.elements.PageElement> previousRows)
PageElement
to a typed table row instance.row
- current table row (HTML 'tr')previousRows
- a list of previous rows (HTML 'tr' elements)public void scrollTop()
@NotNull public List<T> getAllTableRows()
protected void waitUntilCurrentRowsLoaded()
@NotNull protected com.atlassian.pageobjects.elements.PageElement getTable()
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.