Reputation: 1
I use Testdroid, it based on junit3. Command:
solo.clickOnView(solo.findViewById("cc.app.R.id.inf"));
open first button with id:inf
inf
.inf
, something like that:Here use command to chose LinearLayout by index and then
solo.clickOnView(solo.findViewById("cc.app.R.id.inf"));
Upvotes: 0
Views: 29
Reputation: 3720
You can get/find LinearLayout view by index with methods:
getView(int id,int index)
getView(Class<T> viewClass, int index)
...
Then you can use method(s):
getViews(android.view.View parent)
getCurrentViews(Class<T> classToFilterBy, android.view.View parent)
which returns list of views, so filtering must be done by your code/helper method.
Upvotes: 0