class ViewPagerActions


Espresso actions for interacting with a ViewPager.

Summary

Public functions

java-static ViewAction!
clickBetweenTwoTitles(title1: String!, title2: String!)

Clicks between two titles in a ViewPager title strip

java-static ViewAction!

Moves ViewPager to the left be one page.

java-static ViewAction!
scrollLeft(smoothScroll: Boolean)

Moves ViewPager to the left by one page.

java-static ViewAction!

Moves ViewPager to the right be one page.

java-static ViewAction!
scrollRight(smoothScroll: Boolean)

Moves ViewPager to the right by one page.

java-static ViewAction!

Moves ViewPager to the first page.

java-static ViewAction!
scrollToFirst(smoothScroll: Boolean)

Moves ViewPager to the first page.

java-static ViewAction!

Moves ViewPager to the last page.

java-static ViewAction!
scrollToLast(smoothScroll: Boolean)

Moves ViewPager to the last page.

java-static ViewAction!

Moves ViewPager to a specific page.

java-static ViewAction!
scrollToPage(page: Int, smoothScroll: Boolean)

Moves ViewPager to specific page.

Public functions

clickBetweenTwoTitles

java-static fun clickBetweenTwoTitles(title1: String!, title2: String!): ViewAction!

Clicks between two titles in a ViewPager title strip

scrollLeft

java-static fun scrollLeft(): ViewAction!

Moves ViewPager to the left be one page.

scrollLeft

java-static fun scrollLeft(smoothScroll: Boolean): ViewAction!

Moves ViewPager to the left by one page.

scrollRight

java-static fun scrollRight(): ViewAction!

Moves ViewPager to the right be one page.

scrollRight

java-static fun scrollRight(smoothScroll: Boolean): ViewAction!

Moves ViewPager to the right by one page.

scrollToFirst

java-static fun scrollToFirst(): ViewAction!

Moves ViewPager to the first page.

scrollToFirst

java-static fun scrollToFirst(smoothScroll: Boolean): ViewAction!

Moves ViewPager to the first page.

scrollToLast

java-static fun scrollToLast(): ViewAction!

Moves ViewPager to the last page.

scrollToLast

java-static fun scrollToLast(smoothScroll: Boolean): ViewAction!

Moves ViewPager to the last page.

scrollToPage

java-static fun scrollToPage(page: Int): ViewAction!

Moves ViewPager to a specific page.

scrollToPage

java-static fun scrollToPage(page: Int, smoothScroll: Boolean): ViewAction!

Moves ViewPager to specific page.