How do i select two items from a listview with Robotium?

1.1k views Asked by At

I would like two test the selection of two items in a listview using Robotium. I am using this solo.clickInList(0); which gets the first item from the list but how do i get the second one. (solo.clickInList(1); gets the first one again!

Thanks in advance.

1

There are 1 answers

3
BlackHatSamurai On BEST ANSWER

Try using the solo.clickInList(int line, int index)

This might look like:

solo.clickInList(0,1) and solo.clickInList(0,2)

Hope this helps!