I\'m trying to type some text inside an EditText:
public void testSearch() { onView(withId(R.id.titleInput)).perform(typeText(\"Engineer\"));
Had the same issue using Espresso 2. As a workaround I'm using replaceText instead of typeText.
public void testSearch() { onView(withId(R.id.titleInput)).perform(click(), replaceText("Engineer")); onView(withId(R.id.titleInput)).check(matches(withText("Engineer"))); }