Closed GoogleCodeExporter closed 9 years ago
The soft keyboard is not part of the app you're testing and therefore you are
not allowed to interact with it. This is a limitation in the Android platform.
You could try if solo. pressSoftKeyboardNextButton() will work for you.
Original comment by renasr...@gmail.com
on 29 Jan 2014 at 5:06
Well thanks for the above comments. solo.pressSoftKeyboardNextButton() did not
work out. But this method gave us the clue on how we can press the search icon.
What we did is:
we created an object of AutoCompleteTextView by getting its id in
searchBarAutoCompleteTextBox i.e.,
AutoCompleteTextView searchBarAutoCompleteTextBox =
this.solo.getView(package.id.ID_OF_THE_TEXTBOX);
AutoCompleteTextView.onEditorAction(EditorInfo.IME_ACTION_SEARCH); // this line
of code could perform a search operation for us.
Thanks,
Zaid
Original comment by Zaid.I.M...@gmail.com
on 29 Jan 2014 at 11:18
Great to hear. Thanks for the feedback. We'll see if we can add a method like
this in the next release.
Original comment by renasr...@gmail.com
on 29 Jan 2014 at 11:21
My pleasure . And great thanks to you, Renas.
Original comment by Zaid.I.M...@gmail.com
on 29 Jan 2014 at 11:37
Original issue reported on code.google.com by
Zaid.I.M...@gmail.com
on 28 Jan 2014 at 3:09