I\'m trying to type some text inside an EditText:
public void testSearch() { onView(withId(R.id.titleInput)).perform(typeText(\"Engineer\"));
for me I was annotated my test method with @UiThreadTest. I removed that and it solved.
@UiThreadTest