Issue
Question in the title.
I tried something like:
onView(withId(R.id.search_edit_text))
.perform(typeText("some"), pressKey(KeyEvent.KEYCODE_ENTER));
But it doesn't work. Keyboard is still shown and TextView.OnEditorActionListener
not called. Any ideas?
Solution
Try
onView(withId(R.id.search_edit_text))
.perform(typeText("some"), pressImeActionButton());
Answered By - liminal
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.