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

Latest commit

 

History

History
65 lines (50 loc) · 7.75 KB

File metadata and controls

65 lines (50 loc) · 7.75 KB

kakao / com.agoda.kakao.common.actions / BaseActions

BaseActions

interface BaseActions

Base interface for performing actions on view

Provides a lot of basic action methods, such as click(), scrollTo(), etc.

See Also

com.agoda.kakao.edit.EditableActions

com.agoda.kakao.common.actions.SwipeableActions

com.agoda.kakao.common.actions.ScrollableActions

com.agoda.kakao.check.CheckableActions

Properties

Name Summary
view abstract val view: ViewInteractionDelegate

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
BottomNavigationViewActions interface BottomNavigationViewActions : BaseActions
Provides actions for BottomNavigationView
CheckableActions interface CheckableActions : BaseActions
Provides action for checking views
ChipGroupActions interface ChipGroupActions : BaseActions
DatePickerAction interface DatePickerAction : BaseActions
Provides actions for date picker
DatePickerAssertion interface DatePickerAssertion : BaseActions
Provides assertions for date picker
DrawerActions interface DrawerActions : BaseActions
Provides actions for navigation drawer
EditableActions interface EditableActions : BaseActions
Provides editable actions for views
KAdapterItem open class KAdapterItem<out T> : BaseActions, BaseAssertions, Interceptable<ViewInteraction, ViewAssertion, ViewAction>
Base class for KAbsListView adapter items
KBaseView open class KBaseView<out T> : BaseActions, BaseAssertions, Interceptable<ViewInteraction, ViewAssertion, ViewAction>
Base class for all Kakao views
KRecyclerItem open class KRecyclerItem<out T> : BaseActions, BaseAssertions, Interceptable<ViewInteraction, ViewAssertion, ViewAction>
Base class for KRecyclerView adapter items
KViewPagerItem open class KViewPagerItem<out T> : BaseActions, BaseAssertions, Interceptable<ViewInteraction, ViewAssertion, ViewAction>
Base class for KViewPager2 adapter items
NavigationViewActions interface NavigationViewActions : BaseActions
Provides actions for navigation view
ProgressBarActions interface ProgressBarActions : BaseActions
Provides action for ProgressBar
RatingBarActions interface RatingBarActions : BaseActions
Provides action for RatingBar
ScrollableActions interface ScrollableActions : BaseActions
Provides scrolling actions for view
SwipeableActions interface SwipeableActions : BaseActions
Provides swipe actions for views
SwitchableActions interface SwitchableActions : BaseActions
Provides action for actions on Switch
TabLayoutActions interface TabLayoutActions : BaseActions
Provides action for TabLayout
TextViewActions interface TextViewActions : BaseActions
Provides actions for TextViews
TimePickerAction interface TimePickerAction : BaseActions
Provides actions for time picker
TimePickerAssertion interface TimePickerAssertion : BaseActions
Provides assertions for time picker
ToolbarViewActions interface ToolbarViewActions : BaseActions
Provides actions for Toolbar