ViewPagerActions

public interface ViewPagerActions implements BaseActions

Inheritors

Functions

Link copied to clipboard
public Unit act(Function0<ViewAction> function)

Performs custom action on a view

Link copied to clipboard
public Unit click(CoordinatesProvider location)

Performs click on view

Link copied to clipboard
public Unit clickBetweenTwoTitles(String title1, String title2)

Clicks between two titles in a ViewPager title strip

Link copied to clipboard
public Unit doubleClick(CoordinatesProvider location)

Performs double click on view

Link copied to clipboard
public abstract ViewInteractionDelegate getView()
Link copied to clipboard
public Unit longClick(CoordinatesProvider location)

Performs long click on view

Link copied to clipboard
public Unit onFailure(Function2<Throwable, Matcher<View>, Unit> function)

Adds failure handler to the view

Link copied to clipboard

Presses IME action, if supported view is in focus

Link copied to clipboard
public Unit repeatUntil(Integer maxAttempts, Function0<ViewAction> action, Function1<ViewBuilder, Unit> matcher)

Repeats given action on the view until this view will match the given matcher

Link copied to clipboard
public Unit scrollLeft(Boolean smoothScroll)

Moves ViewPager to the left be one page.

Link copied to clipboard
public Unit scrollRight(Boolean smoothScroll)

Moves ViewPager to the right be one page.

Link copied to clipboard
public Unit scrollTo()

Scrolls to the view, if possible

Link copied to clipboard
public Unit scrollToFirst(Boolean smoothScroll)

Moves ViewPager to the first page.

Link copied to clipboard
public Unit scrollToLast(Boolean smoothScroll)

Moves ViewPager to the last page.

Link copied to clipboard
public Unit scrollToPage(Integer page, Boolean smoothScroll)

Moves ViewPager to a specific page.

Link copied to clipboard
@Deprecated(message = "Use scrollRight()", replaceWith = @ReplaceWith(imports = {}, expression = "scrollRight()"))
public Unit swipeLeft()

Swipes left on the view

Link copied to clipboard
@Deprecated(message = "Use scrollLeft()", replaceWith = @ReplaceWith(imports = {}, expression = "scrollLeft()"))
public Unit swipeRight()

Swipes right on the view