I use Testdroid, it based on junit3. Command:
solo.clickOnView(solo.findViewById("cc.app.R.id.inf"));
open first button with id:inf
- what command need use to press on second(third and more) button
with id:
inf
. - how select area/layout, where junit try found element with
id:
inf
, something like that:
Here use command to chose LinearLayout by index and then
solo.clickOnView(solo.findViewById("cc.app.R.id.inf"));
You can get/find LinearLayout view by index with methods:
Then you can use method(s):
which returns list of views, so filtering must be done by your code/helper method.