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

Latest commit

 

History

History
41 lines (30 loc) · 4.76 KB

File metadata and controls

41 lines (30 loc) · 4.76 KB

kakao / com.agoda.kakao.picker.date / DatePickerAssertion

DatePickerAssertion

interface DatePickerAssertion : BaseActions

Provides assertions for date picker

Inherited Properties

Name Summary
view abstract val view: ViewInteractionDelegate

Functions

Name Summary
hasDate open fun hasDate(year: Int, monthOfYear: Int, day: Int): Unit
Check if picker dialog contain selected date Month number will be normalized
hasDay open fun hasDay(day: Int): Unit
Check if picker dialog contain selected day
hasMonth open fun hasMonth(monthOfYear: Int): Unit
Check if picker dialog contain selected month
hasYear open fun hasYear(year: Int): Unit
Check if picker dialog contain selected year

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
KDatePicker class KDatePicker : KBaseView<KDatePicker>, DatePickerAction, DatePickerAssertion
View for interact with default date picker