{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
public final class ViewPagerActions
Espresso actions for interacting with a ViewPager.
Public constructors |
|
|---|---|
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 static ViewAction clickBetweenTwoTitles(String title1, String title2)
Clicks between two titles in a ViewPager title strip
public static ViewAction scrollLeft(boolean smoothScroll)
Moves ViewPager to the left by one page.
public static ViewAction scrollRight(boolean smoothScroll)
Moves ViewPager to the right by one page.
public static ViewAction scrollToFirst(boolean smoothScroll)
Moves ViewPager to the first page.
public static ViewAction scrollToLast(boolean smoothScroll)
Moves ViewPager to the last page.
public static ViewAction scrollToPage(int page, boolean smoothScroll)
Moves ViewPager to specific page.