The standard way of triggering key event could look like this:
onView(allOf(withId(R.id.edit_text), isDisplayed())).perform(ViewActions.pressKey(KeyEvent.KEYCODE_0));
What to do if there is no target view( edit_text
) but there is custom Keyboard with just listener setOnKeyboardActionListener
?
Aucun commentaire:
Enregistrer un commentaire