austgl / robotium

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

How to check the value of ListPreference? #198

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
There are Preference in my app, like system settings in Android OS.

How can I get the small text(may be called summary) for the Preference using 
robotium? and check if it is right.

My method is click it in first, and then use "isTextChecked()" to test. But it 
seems not necessary to click in, and it not always work well.

Is there any simple method to get the summary for Preference? Please give some 
advice.

Original issue reported on code.google.com by heli2003...@gmail.com on 2 Jan 2012 at 1:03

GoogleCodeExporter commented 9 years ago
You can always use getText or searchText. Please use this tracker for defects. 

Original comment by renasr...@gmail.com on 2 Jan 2012 at 9:30

GoogleCodeExporter commented 9 years ago
In my app, there are several Preference in one page, and the summary for two of 
the Preference are the same. 
So if I use getText or searchText, I can find the text, but I cannot make sure 
the summary is right for the right one.
Would you please give some other advice, Thank you!

Original comment by heli2003...@gmail.com on 10 Jan 2012 at 1:46