CSEspresso

object CSEspresso

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun checkTextDisplayed(@StringRes text: Int, timeout: Int = 5.second)
fun checkTextDisplayed(text: String, timeout: Int = 5.second)
Link copied to clipboard
fun getAllViews(@IdRes viewId: Int, where: (View) -> Boolean = { true }, timeout: Int = 7.second, function: (List<View>) -> Unit)
Link copied to clipboard
fun View.getChild(childMatcher: Matcher<View>): View?
fun View.getChild(childMatcher: Matcher<View>, where: (View) -> Boolean): View?
fun View.getChild(childMatcher: Matcher<View>, index: Int): View?
Link copied to clipboard
fun View.getChilds(childMatcher: Matcher<View>, where: (View) -> Boolean): List<View>?
Link copied to clipboard
fun <Value> getValue(@IdRes viewId: Int, timeout: Int = 7.second, function: (View) -> Value): Value
fun <Value> getValue(@IdRes viewId: Int, where: (View) -> Boolean = { true }, timeout: Int = 7.second, function: (View) -> Value): Value
fun <Value> getValue(@IdRes viewId: Int, index: Int = 0, timeout: Int = 7.second, function: (View) -> Value): Value
Link copied to clipboard
fun getView(@IdRes viewId: Int, timeout: Int = 7.second, function: (View) -> Unit)
fun getView(@IdRes viewId: Int, where: (View) -> Boolean, timeout: Int = 7.second, function: (View) -> Unit)
fun getView(@IdRes viewId: Int, index: Int, timeout: Int = 7.second, function: (View) -> Unit)
Link copied to clipboard
fun View.hasChild(childMatcher: Matcher<View>): Boolean
Link copied to clipboard
fun isTextDisplayed(text: String, timeout: Int = 3.second): Boolean
Link copied to clipboard
fun isViewInLayout(@IdRes viewId: Int, timeout: Int = 2.second): Boolean
Link copied to clipboard
inline fun <A : Activity> launch(): ActivityScenario<A>
Link copied to clipboard
fun randomClick(isLong: Boolean = false)
Link copied to clipboard
Link copied to clipboard
fun wait(timeout: Int = 3.second)
Link copied to clipboard
fun waitFor(@IdRes viewId: Int, index: Int = 0, timeout: Int = 7.second, function: (View) -> Boolean)
Link copied to clipboard
fun waitForViewInLayout(@IdRes viewId: Int, timeout: Int = 7.second)
Link copied to clipboard
fun waitForViewNotInLayout(@IdRes viewId: Int, timeout: Int = 7.second)