Class MuiPaginationLocators
- java.lang.Object
-
- com.github.grossopa.selenium.component.mui.lab.MuiPaginationLocators
-
public class MuiPaginationLocators extends Object
The locators for locating the previous / next / first / last buttons and page number of each page button.- Since:
- 1.3
- Author:
- Jack Yin
-
-
Field Summary
Fields Modifier and Type Field Description static StringARIA_LABELTHE aria label attributestatic java.util.function.Function<MuiPagination,MuiButton>DEFAULT_FIRST_BUTTONThe default first button finder functionstatic java.util.function.Function<MuiPagination,MuiButton>DEFAULT_LAST_BUTTONThe default last button finder functionstatic java.util.function.Function<MuiPagination,MuiButton>DEFAULT_NEXT_BUTTONThe default next button finder functionstatic java.util.function.Function<MuiPagination,List<MuiButton>>DEFAULT_PAGE_BUTTONSThe default page buttons finder functionstatic java.util.function.Function<MuiButton,Integer>DEFAULT_PAGE_INDEXThe default page index finder functionstatic java.util.function.Function<MuiPagination,MuiButton>DEFAULT_PREVIOUS_BUTTONThe default previous button finder function
-
Constructor Summary
Constructors Constructor Description MuiPaginationLocators(java.util.function.Function<MuiPagination,MuiButton> previousButtonFinder, java.util.function.Function<MuiPagination,MuiButton> nextButtonFinder, java.util.function.Function<MuiPagination,MuiButton> firstButtonFinder, java.util.function.Function<MuiPagination,MuiButton> lastButtonFinder, java.util.function.Function<MuiPagination,List<MuiButton>> pageButtonsFinder, java.util.function.Function<MuiButton,Integer> pageIndexFinder)Constructs an instance with all finders
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MuiPaginationLocatorscreateDefault()Creates a default instance with Mui locators.java.util.function.Function<MuiPagination,MuiButton>getFirstButtonFinder()Gets the finder for locating and finding the first buttonjava.util.function.Function<MuiPagination,MuiButton>getLastButtonFinder()Gets the finder for locating and finding the last buttonjava.util.function.Function<MuiPagination,MuiButton>getNextButtonFinder()Gets the finder for locating and finding the next buttonjava.util.function.Function<MuiPagination,List<MuiButton>>getPageButtonsFinder()Gets the finder for locating and finding the page buttonsjava.util.function.Function<MuiButton,Integer>getPageIndexFinder()the finder for finding the index number from page buttonjava.util.function.Function<MuiPagination,MuiButton>getPreviousButtonFinder()Gets finder for locating and finding the previous button
-
-
-
Field Detail
-
ARIA_LABEL
public static final String ARIA_LABEL
THE aria label attribute- See Also:
- Constant Field Values
-
DEFAULT_PREVIOUS_BUTTON
public static final java.util.function.Function<MuiPagination,MuiButton> DEFAULT_PREVIOUS_BUTTON
The default previous button finder function
-
DEFAULT_NEXT_BUTTON
public static final java.util.function.Function<MuiPagination,MuiButton> DEFAULT_NEXT_BUTTON
The default next button finder function
-
DEFAULT_FIRST_BUTTON
public static final java.util.function.Function<MuiPagination,MuiButton> DEFAULT_FIRST_BUTTON
The default first button finder function
-
DEFAULT_LAST_BUTTON
public static final java.util.function.Function<MuiPagination,MuiButton> DEFAULT_LAST_BUTTON
The default last button finder function
-
DEFAULT_PAGE_BUTTONS
public static final java.util.function.Function<MuiPagination,List<MuiButton>> DEFAULT_PAGE_BUTTONS
The default page buttons finder function
-
-
Constructor Detail
-
MuiPaginationLocators
public MuiPaginationLocators(java.util.function.Function<MuiPagination,MuiButton> previousButtonFinder, java.util.function.Function<MuiPagination,MuiButton> nextButtonFinder, java.util.function.Function<MuiPagination,MuiButton> firstButtonFinder, java.util.function.Function<MuiPagination,MuiButton> lastButtonFinder, java.util.function.Function<MuiPagination,List<MuiButton>> pageButtonsFinder, java.util.function.Function<MuiButton,Integer> pageIndexFinder)
Constructs an instance with all finders- Parameters:
previousButtonFinder- the finder for locating and finding the previous buttonnextButtonFinder- the finder for locating and finding the next buttonfirstButtonFinder- the finder for locating and finding the first buttonlastButtonFinder- the finder for locating and finding the last buttonpageButtonsFinder- the finder for locating and find the page buttonspageIndexFinder- the finder for finding the index number from page button
-
-
Method Detail
-
getPreviousButtonFinder
public java.util.function.Function<MuiPagination,MuiButton> getPreviousButtonFinder()
Gets finder for locating and finding the previous button- Returns:
- finder for locating and finding the previous button
-
getNextButtonFinder
public java.util.function.Function<MuiPagination,MuiButton> getNextButtonFinder()
Gets the finder for locating and finding the next button- Returns:
- the finder for locating and finding the next button
-
getFirstButtonFinder
public java.util.function.Function<MuiPagination,MuiButton> getFirstButtonFinder()
Gets the finder for locating and finding the first button- Returns:
- the finder for locating and finding the first button
-
getLastButtonFinder
public java.util.function.Function<MuiPagination,MuiButton> getLastButtonFinder()
Gets the finder for locating and finding the last button- Returns:
- the finder for locating and finding the last button
-
getPageButtonsFinder
public java.util.function.Function<MuiPagination,List<MuiButton>> getPageButtonsFinder()
Gets the finder for locating and finding the page buttons- Returns:
- the finder for locating and finding the page buttons
-
getPageIndexFinder
public java.util.function.Function<MuiButton,Integer> getPageIndexFinder()
the finder for finding the index number from page button- Returns:
- the finder for finding the index number from page button
-
createDefault
public static MuiPaginationLocators createDefault()
Creates a default instance with Mui locators.- Returns:
- the created locators
-
-