Class InfiniteScrollTableComponent<T>

    • Field Detail

      • elementFinder

        @Inject
        protected com.atlassian.pageobjects.elements.PageElementFinder elementFinder
    • Constructor Detail

      • InfiniteScrollTableComponent

        public InfiniteScrollTableComponent​(String containerCssSelector)
    • Method Detail

      • convertRow

        @NotNull
        protected abstract T convertRow​(@NotNull
                                        @NotNull com.atlassian.pageobjects.elements.PageElement row,
                                        @NotNull
                                        @NotNull List<com.atlassian.pageobjects.elements.PageElement> previousRows)
        Convert the given PageElement to a typed table row instance.
        Parameters:
        row - current table row (HTML 'tr')
        previousRows - a list of previous rows (HTML 'tr' elements)
      • scrollTop

        public void scrollTop()
        Scroll the viewport to the very top of the page.
      • getAllTableRows

        @NotNull
        public @NotNull List<T> getAllTableRows()
        Obtain all table rows. This method will invoke the infinite scroll behaviour until the data from server is depleted.
      • waitUntilCurrentRowsLoaded

        protected void waitUntilCurrentRowsLoaded()
        Waits until all rows currently present in the table have been fully loaded.
      • getTable

        @NotNull
        protected @NotNull com.atlassian.pageobjects.elements.PageElement getTable()
      • findRow

        public com.atlassian.pageobjects.elements.PageElement findRow​(Predicate<com.atlassian.pageobjects.elements.PageElement> predicate)