java.lang.Object | |
↳ | android.support.test.espresso.ViewInteraction |
Provides the primary interface for test authors to perform actions or asserts on views.
Each interaction is associated with a view identified by a view matcher. All view actions and asserts are performed on the UI thread (thus ensuring sequential execution). The same goes for retrieval of views (this is done to ensure that view state is "fresh" prior to execution of each operation).
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Checks the given
ViewAssertion on the the view selected by the current view matcher.
| |||||||||||
Makes this ViewInteraction scoped to the root selected by the given root matcher.
| |||||||||||
Performs the given action(s) on the view selected by the current view matcher.
| |||||||||||
Replaces the default failure handler (@see Espresso.setFailureHandler) with a custom
failurehandler for this particular interaction.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Checks the given ViewAssertion
on the the view selected by the current view matcher.
viewAssert | the assertion to check. |
---|
Makes this ViewInteraction scoped to the root selected by the given root matcher.
Performs the given action(s) on the view selected by the current view matcher. If more than one action is provided, actions are executed in the order provided with precondition checks running prior to each action.
viewActions | one or more actions to execute. |
---|
Replaces the default failure handler (@see Espresso.setFailureHandler) with a custom failurehandler for this particular interaction.
failureHandler | a non-null failurehandler to use to report failures. |
---|