I'm performing automatic testing and would like to know how to get the IME_ACTION_DONE from the keyboard.
Follow the code:
@Test
public void shouldSearchUserOnMap(){
SystemClock.sleep(2500);
Login();
onView(withId(R.id.searchButton)).perform(typeText("[email protected]"));
SystemClock.sleep(2500);
onView(pressKey(EditorInfo.IME_ACTION_DONE)).perform(click());
}
Thank you for your collaboration!