kakao / com.agoda.kakao.spinner / KSpinnerItem
class KSpinnerItem :
KAdapterItem
<
KTextView
>,
TextViewAssertions
KTextView implementation of KAdapterItem
Use this if you want to perform/assert on the root view of adapter item
parent
- Matcher of the root view of adapter item
See Also
Name | Summary |
---|---|
<init> | KSpinnerItem(parent: DataInteraction) KTextView implementation of KAdapterItem |
Name | Summary |
---|---|
root | open var root: Matcher<Root!>! |
view | open val view: ViewInteractionDelegate |
Name | Summary |
---|---|
containsText | open fun containsText(text: String ): Unit Checks if the view contains given text |
hasAnyText | open fun hasAnyText(): Unit Checks if the view has any text |
hasContentDescription | open fun hasContentDescription(text: String ): Unit Checks if the view has given content description |
hasEmptyText | open fun hasEmptyText(): Unit Checks if the view have not any text |
hasHint | open fun hasHint(hint: String ): Unit open fun hasHint(resId: Int ): Unit Checks if the view has given hint |
hasNoText | open fun hasNoText(text: String ): Unit open fun hasNoText(resId: Int ): Unit Checks if the view does not have a given text |
hasText | open fun hasText(text: String ): Unit open fun hasText(resId: Int ): Unit Checks if the view has given text open fun hasText(matcher: Matcher< String >): Unit Checks if the view has text that matches given matcher |
hasTextColor | open fun hasTextColor(resId: Int ): Unit Checks if the view has given text color |
invoke | operator fun invoke(function: T .() -> Unit ): Unit Operator that allows usage of DSL style |
perform | infix fun perform(function: T .() -> Unit ): T Infix function for invoking lambda on your view |
startsWithText | open fun startsWithText(text: String ): Unit Checks if the view text start with given substring |