xiaofans / robotium

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

clickOnText() fails on partially visible text in WebView #468

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Create a layout where the WebView does not fill up all the available space.
2. Load content in the WebView.
3. Call clickOnText() on a partially visible text.

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

Expected: The WebView's content should be scrolled until the center of the text 
becomes visible/clickable.
Actual: clickOnText() clicks on an other component.

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

The test was performed on emulator with target Android 2.3.3 and resolution 
320x480 using Robotium 4.1

Please provide any additional information below.

The problem is that the text is considered as sufficiently visible when it is 
not.
Please find the test applications (to illustrate the problem) and a possible 
patch attached.

Original issue reported on code.google.com by Gabor.Pa...@flexionmobile.com on 30 May 2013 at 3:58

Attachments:

GoogleCodeExporter commented 9 years ago
Thank you for reporting this. 

Original comment by renasr...@gmail.com on 30 May 2013 at 5:11

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:24