austgl / robotium

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

Test menu android #56

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?
I can not get the reference of the menu buttons

What version of the product are you using? On what operating system?
2.1 windows

Please provide any additional information below.

I would like to conduct tests on an application that also has the menu, but I 
need to know the position of the menu buttons, automatically via robotium

Original issue reported on code.google.com by sergio.p...@gmail.com on 21 Jan 2011 at 4:17

GoogleCodeExporter commented 9 years ago
If you open the menu by using solo.sendKey(Solo.Menu); then you can use 
solo.getCurrentTextViews() and you will get all the text views in the menu in 
an arraylist. You can also use solo.getViews() to get everything in the menu. 

Original comment by renasr...@gmail.com on 21 Jan 2011 at 7:56