InteractionsScope

inner class InteractionsScope

Class which exposes interactions that can take place on a view. Exposing interactions in this class ensures that they are only accessible within act, where the proper threading is taken into account to properly update the components and views.

Functions

Link copied to clipboard
fun clickOnContentDescription(contentDescription: String): Boolean

Clicks on a View with the specified tag in the rendered hierarchy, throwing if the view doesn't exists

Link copied to clipboard

Clicks on the root view, if it has click handling, throwing if the view is not clickable.

Link copied to clipboard
fun clickOnTag(@StringRes resourceId: Int): Boolean

Clicks on a View with the specified tag in the rendered hierarchy, throwing if the view doesn't exists

Link copied to clipboard
fun clickOnText(@StringRes resourceId: Int): Boolean

Clicks on a View with the specified text in the rendered hierarchy, throwing if the view doesn't exists