sangmingming / robotium

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

Problems with solo.sendkey(Solo.MENU) #69

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.solo.sendkey(Solo.MENU)
2.
3.

What is the expected output? What do you see instead?

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

Please provide any additional information below.
Problems with solo.sendkey.
I'm doing a test, and I would like to know if there is a menu in the current 
activity.
I had thought about using solo.sendkey(Solo.MENU); after int k = 
solo.getcurrentTextView(null).size(); after if (k != 0) this means that there 
is no menu.
But this procedure does not work,because if there is no menu code 
solo.sendkey(Solo.MENU) not by mistake.

Could you tell me if I can use another solution
Thanks

Original issue reported on code.google.com by sergio.p...@gmail.com on 11 Feb 2011 at 11:16

GoogleCodeExporter commented 9 years ago
Unfortunetely there is no other solution. You can not know if there is a menu 
or not.

Original comment by renasr...@gmail.com on 11 Feb 2011 at 11:49