Android Testing UI with Espresso edit

Overall Espresso

Setup Espresso :

androidTestCompile ''
androidTestCompile ''

ViewMatchers – A collection of objects that implement Matcher<? super View> interface. You can pass one or more of these to the onView method to locate a view within the current view hierarchy.

ViewActions – A collection of ViewActions that can be passed to the ViewInteraction.perform() method (for example, click()).

ViewAssertions – A collection of ViewAssertions that can be passed the ViewInteraction.check() method. Most of the time, you will use the matches assertion, which uses a View matcher to assert the state of the currently selected view.

Espresso cheat sheet by google

Enter Text In EditText


Perform Click on View


Checking View is Displayed


Feedback about page:

Optional: your email if you want me to get back to you:

Table Of Contents
64 Menu
93 Testing UI with Espresso
112 Loader
119 Xposed
132 Colors
135 Fresco
140 AdMob
147 Button
156 Vk SDK
170 XMPP
176 OpenCV
200 FileIO
203 Moshi
217 Paint
231 AIDL
241 JCodec
243 Okio
255 Looper
  ↑ ↓ to navigate     ↵ to select     Esc to close