Skip to content
This repository has been archived by the owner on May 26, 2021. It is now read-only.

Latest commit

 

History

History
50 lines (35 loc) · 4.55 KB

File metadata and controls

50 lines (35 loc) · 4.55 KB

kakao / com.agoda.kakao.common.actions / ScrollableActions

ScrollableActions

interface ScrollableActions : BaseActions

Provides scrolling actions for view

Important: does not hold any implementation

See Also

com.agoda.kakao.recycler.RecyclerActions

com.agoda.kakao.scroll.ScrollViewActions

Inherited Properties

Name Summary
view abstract val view: ViewInteractionDelegate

Functions

Name Summary
scrollTo abstract fun scrollTo(position: Int): Unit
Scrolls to the specific position of the view
scrollToEnd abstract fun scrollToEnd(): Unit
Scrolls to the last position of the view
scrollToStart abstract fun scrollToStart(): Unit
Scrolls to the starting position of the view

Inherited Functions

Name Summary
act open fun act(function: () -> ViewAction): Unit
Performs custom action on a view
click open fun click(location: GeneralLocation = GeneralLocation.VISIBLE_CENTER): Unit
Performs click on view
doubleClick open fun doubleClick(location: GeneralLocation = GeneralLocation.VISIBLE_CENTER): Unit
Performs double click on view
longClick open fun longClick(location: GeneralLocation = GeneralLocation.VISIBLE_CENTER): Unit
Performs long click on view
onFailure open fun onFailure(function: (error: Throwable, matcher: Matcher<View>) -> Unit): Unit
Adds failure handler to the view
pressImeAction open fun pressImeAction(): Unit
Presses IME action, if supported view is in focus
repeatUntil open fun repeatUntil(maxAttempts: Int= 1, action: () -> ViewAction, matcher:ViewBuilder.() -> Unit): Unit
Repeats given action on the view until this view will match the given matcher
scrollTo open fun scrollTo(): Unit
Scrolls to the view, if possible

Inheritors

Name Summary
RecyclerActions interface RecyclerActions : ScrollableActions, SwipeableActions
Provides ScrollableActions implementation for RecyclerView
ScrollViewActions interface ScrollViewActions : ScrollableActions, SwipeableActions
Provides ScrollableActions implementation for ScrollView
ViewPager2Actions interface ViewPager2Actions : ScrollableActions, SwipeableActions
Provides ScrollableActions implementation for ViewPager2