lihuazhang / robotium

Automatically exported from code.google.com/p/robotium
0 stars 0 forks source link

Solo.pressMenuItem(int) clicking middle of screen #655

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Have up, delete and done icons in action bar.
2. Populate screen with grid view of buttons.
3. Solo.pressMenuItem(2) presses one of these instead of icon in action bar. 

What is the expected output? What do you see instead?
Solo.pressMenuItem(2) shouls press last icon on action bar i.e. done icon. 
However a grid item in the GridView is pressed instead.

What version of the product are you using? On what operating system?
Robotium 5.2.1 in Android Studio on Windows 7.

Please provide any additional information below.
Solo.pressMenuItem(2) works correctly if no GridView items present. However, as 
soon as GridCiew populates, one of these is pressed instead.

Original issue reported on code.google.com by rizwan.c...@gmail.com on 3 Feb 2015 at 1:02

GoogleCodeExporter commented 9 years ago
This method was originally introduced for the menu bar. Unfortunately we can't 
do anything about your case as that will effect backwards compatibility. 

Original comment by renasr...@gmail.com on 24 Feb 2015 at 12:30