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

Latest commit

 

History

History
47 lines (34 loc) · 6.75 KB

File metadata and controls

47 lines (34 loc) · 6.75 KB

kakao / com.agoda.kakao.check / KCheckBox

KCheckBox

class KCheckBox : KBaseView<KCheckBox>, CheckableActions, TextViewAssertions, CheckableAssertions

View with CheckableActions, CheckableAssertions and TextViewAssertions

See Also

CheckableActions

CheckableAssertions

TextViewAssertions

Constructors

Name Summary
<init> KCheckBox(function: ViewBuilder.() -> Unit)
KCheckBox(parent: Matcher<View>, function: ViewBuilder.() -> Unit)
KCheckBox(parent: DataInteraction, function: ViewBuilder.() -> Unit)

Inherited Properties

Name Summary
root open var root: Matcher<Root>
view open val view: ViewInteractionDelegate

Inherited Functions

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 textopen 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
isChecked open fun isChecked(): Unit
Checks if the view is checked
isNotChecked open fun isNotChecked(): Unit
Checks if the view is not checked
perform infix fun perform(function: T.() -> Unit): T
Infix function for invoking lambda on your view
setChecked open fun setChecked(checked: Boolean): Unit
Sets checked state of the view
startsWithText open fun startsWithText(text: String): Unit
Checks if the view text start with given substring