austgl / robotium

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

If there are more than on Preference in one page, How can get the summary for the appointed Preference? #206

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
There are several Preference in one page, and the summary for 2 of the 
preference are the same.

Is there any method can get the summary for the Preference with given text?

searchText can only check if there is the text show on the page, but can not 
check if the text is show on the right place.

Original issue reported on code.google.com by heli2003...@gmail.com on 11 Jan 2012 at 3:25

GoogleCodeExporter commented 9 years ago
Use getText() and then ask the text view that you get were it is located. 
Something like solo.getText("Summary").getLocationOnScreen();

Original comment by renasr...@gmail.com on 11 Jan 2012 at 7:53