sangmingming / robotium

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

Solo.searchText should be possible with boolean parameters "onlyVisible" and "scroll" at the same time #65

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Solo.searchText should be possible with the boolean parameters "onlyVisible" 
and "scroll" at the same time. So far one can only use one of them at the same 
time. 

Original issue reported on code.google.com by maul_p...@web.de on 8 Feb 2011 at 12:28

GoogleCodeExporter commented 9 years ago
If I read the code correctly, the parameter "onlyVisible" has the effect that 
TextViews that have the property android:visibility="invisible" are not taken 
into account when searching.

However there are other TextViews:
- They don't have the property  android:visibility="invisible"
- They are not shown at the Screen at the moment (for example at the bottom of 
a list that can be scrolled). 

These on the other hand should be taken into account when searching.

Original comment by maul_p...@web.de on 8 Feb 2011 at 12:51

GoogleCodeExporter commented 9 years ago
Please see:

searchText(String text,
                          int minimumNumberOfMatches,
                          boolean scroll,
                          boolean onlyVisible)

Also searchText(String text) will scroll if it does not find a TextView that is 
currently visible.

Original comment by renasr...@gmail.com on 8 Feb 2011 at 4:26