xiaofans / robotium

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

enterText leaves soft keyboard active in 4.1 #435

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download and install MyCentrify
2. Click Menu item Settings
3. Click Login URL, and input something
4. Click OK button

What is the expected output? What do you see instead?
At step 3, the soft keyboard disappears in 4.0, in 4.1, it stays. Then when 
trying to click "OK" button, the y coordinate it gets is the coordinate without 
the soft keyboard. But because the soft keyboard stays, the click has no effect 
on the button because it is not clicking the correct location.

What version of the product are you using? On what operating system?
4.1, Window 7 64bit.

Please provide any additional information below.
The work around when upgrading from 4.0 to 4.1 is to add solo.goBack() after 
calling solo.enterText.
The issue is caused by line 59 of TextEnterer, hideSoftKeyboard(false)

Original issue reported on code.google.com by shimi...@gmail.com on 15 Apr 2013 at 9:38

GoogleCodeExporter commented 9 years ago
Thanks for reporting this. Do you get the same result with typeText()?

Original comment by renasr...@gmail.com on 16 Apr 2013 at 4:23

GoogleCodeExporter commented 9 years ago
Yes, with typeText(), it does not hide soft keyboard either. Line 88 of 
TextEnterer hideSoftKeyboard(true) does not hide the keyboard when I tried to 
debug.

Original comment by shimi...@gmail.com on 16 Apr 2013 at 5:58

GoogleCodeExporter commented 9 years ago
Can you please email me the apk: renasreda@gmail.com. Thanks. 

Original comment by renasr...@gmail.com on 16 Apr 2013 at 6:06

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I am also facing the same issue keyboard not dismissed in 4.1 when entered text 
inside text box.
The same code works fine with 4.0.So I am reverting back to 4.0.
Please fix it.It will be ahrd to change the test code in all the 
places(including solo.goBack() to dismiss keyboard.

Thanks,
Sandhya

Original comment by sandhya2...@gmail.com on 4 Jun 2013 at 6:16

GoogleCodeExporter commented 9 years ago
This has been fixed in Robotium 4.2. 

Original comment by renasr...@gmail.com on 25 Jun 2013 at 4:23