ViewPagerActions

public final class ViewPagerActions


Espresso actions for interacting with a ViewPager.

Summary

Public constructors

Public methods

static ViewAction

Clicks between two titles in a ViewPager title strip

static ViewAction

Moves ViewPager to the left be one page.

static ViewAction
scrollLeft(boolean smoothScroll)

Moves ViewPager to the left by one page.

static ViewAction

Moves ViewPager to the right be one page.

static ViewAction
scrollRight(boolean smoothScroll)

Moves ViewPager to the right by one page.

static ViewAction

Moves ViewPager to the first page.

static ViewAction
scrollToFirst(boolean smoothScroll)

Moves ViewPager to the first page.

static ViewAction

Moves ViewPager to the last page.

static ViewAction
scrollToLast(boolean smoothScroll)

Moves ViewPager to the last page.

static ViewAction
scrollToPage(int page, boolean smoothScroll)

Moves ViewPager to specific page.

static ViewAction
scrollToPage(int page)

Moves ViewPager to a specific page.

Public constructors

ViewPagerActions

public ViewPagerActions()

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()

Moves ViewPager to the left be one page.

scrollLeft

public static ViewAction scrollLeft(boolean smoothScroll)

Moves ViewPager to the left by one page.

scrollRight

public static ViewAction scrollRight()

Moves ViewPager to the right be one page.

scrollRight

public static ViewAction scrollRight(boolean smoothScroll)

Moves ViewPager to the right by one page.

scrollToFirst

public static ViewAction scrollToFirst()

Moves ViewPager to the first page.

scrollToFirst

public static ViewAction scrollToFirst(boolean smoothScroll)

Moves ViewPager to the first page.

scrollToLast

public static ViewAction scrollToLast()

Moves ViewPager to the last 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.

scrollToPage

public static ViewAction scrollToPage(int page)

Moves ViewPager to a specific page.