Use Espresso to write concise, beautiful, and reliable Android UI tests. The following code snippet shows an example of an Espresso test: @Test public void greeterSaysHello() { onView(withId(R.id.name_field)).perform(typeText("Steve")); onView(withId(R.id.greet_button)).perform(click()); onView(withText("Hello Steve!")).check(matches(isDisplayed())); } The core API is small, predictable, and easy