I\'m trying to type some text inside an EditText:
public void testSearch() { onView(withId(R.id.titleInput)).perform(typeText(\"Engineer\"));
You can bypass the problem by calling setText on the EditText.
final EditText titleInput = (EditText) activity.findViewById(R.id.titleInput); getInstrumentation().runOnMainSync(new Runnable() { public void run() { titleInput.setText("Engineer"); } });