sangmingming / robotium

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

Problem interacting with buttons inside a fragment, while on-screen keyboard is up #193

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. click on a button in my activity
2. opens a popup (fragment)
3. enter text into a textField inside my fragment (Keyboard pops up and pushes 
the fragment up)
4. Click on button at index

What is the expected output? What do you see instead?
The button supposed to be clicked but it doesn't.

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

Please provide any additional information below.
The problem is that the keyboard is up and I think robotium doesn't consider 
the location change (keyboard pushes my fragment up). I believe this problem 
only happens on fragments, and to be more specific, in my case It happens on my 
second fragment that I push into the fragment-manager stack.

The workaround is to call solo.goBack() to hide the keyboard (push fragment 
down to original location) and then try to click the button.

Original issue reported on code.google.com by ary...@gmail.com on 8 Dec 2011 at 7:00

GoogleCodeExporter commented 9 years ago
This is not a Robotium issue. What happens is that Robotium asks the view were 
it is located. And based on that it clicks in the middle of it. It seems as if 
your views give the wrong locations back when the keyboard is up.  

Original comment by renasr...@gmail.com on 8 Dec 2011 at 9:25