ViewPagerActions
public final class ViewPagerActions
Espresso actions for interacting with a ViewPager.
Summary
Public methods |
|
|---|---|
static ViewAction |
clickBetweenTwoTitles(String title1, String title2)Clicks between two titles in a |
static ViewAction |
Moves |
static ViewAction |
scrollLeft(boolean smoothScroll)Moves |
static ViewAction |
Moves |
static ViewAction |
scrollRight(boolean smoothScroll)Moves |
static ViewAction |
Moves |
static ViewAction |
scrollToFirst(boolean smoothScroll)Moves |
static ViewAction |
Moves |
static ViewAction |
scrollToLast(boolean smoothScroll)Moves |
static ViewAction |
scrollToPage(int page)Moves |
static ViewAction |
scrollToPage(int page, boolean smoothScroll)Moves |
Public methods
clickBetweenTwoTitles
public static ViewAction clickBetweenTwoTitles(String title1, String title2)
Clicks between two titles in a ViewPager title strip
scrollLeft
public static ViewAction scrollLeft(boolean smoothScroll)
Moves ViewPager to the left by one page.
scrollRight
public static ViewAction scrollRight(boolean smoothScroll)
Moves ViewPager to the right by one page.
scrollToFirst
public static ViewAction scrollToFirst(boolean smoothScroll)
Moves ViewPager to the first page.
scrollToLast
public static ViewAction scrollToLast(boolean smoothScroll)
Moves ViewPager to the last page.
scrollToPage
public static ViewAction scrollToPage(int page, boolean smoothScroll)
Moves ViewPager to specific page.