ViewPagerActions
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 |
java-static ViewAction! |
Moves |
java-static ViewAction! |
scrollLeft(smoothScroll: Boolean)Moves |
java-static ViewAction! |
Moves |
java-static ViewAction! |
scrollRight(smoothScroll: Boolean)Moves |
java-static ViewAction! |
Moves |
java-static ViewAction! |
scrollToFirst(smoothScroll: Boolean)Moves |
java-static ViewAction! |
Moves |
java-static ViewAction! |
scrollToLast(smoothScroll: Boolean)Moves |
java-static ViewAction! |
scrollToPage(page: Int)Moves |
java-static ViewAction! |
scrollToPage(page: Int, smoothScroll: Boolean)Moves |
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(smoothScroll: Boolean): ViewAction!
Moves ViewPager to the left by one page.
scrollRight
java-static fun scrollRight(smoothScroll: Boolean): ViewAction!
Moves ViewPager to the right by one page.
scrollToFirst
java-static fun scrollToFirst(smoothScroll: Boolean): ViewAction!
Moves ViewPager to the first 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.