title: Iterating through a List and clicking on list items in Robotium
body: <p>I'm trying to run some automated tests in Robotium by iterating through a list and clicking on each list element to start another activity. I have the code below in my test method:</p>
  
  <p>Code:</p>
  
  <pre><code>      solo.assertCurrentActivity("Wrong activity", MainActivity.class);
        //Clicks on the action bar tab
        solo.clickOnText("Charts"); 
  
  
        ArrayList&lt;ListView&gt; list = solo.getCurrentListViews();
  
        for(int i = 0; i &lt; list.size(); i++) {
  
  
           //Clicks on the list item assert that the new activity is started
           solo.clickInList(chartPosition);
           solo.assertCurrentActivity("Json Class", JsonActivity.class);
           //Go back to the list  
           solo.goBack();         
  
  
       }
  </code></pre>
  
  <p>The code above does not click on any list items and the JUnit Test results show that all tests are passed which is very confusing.</p>
  
  <p>Does anyone how to successfully iterate through a list in Robotium? </p>
  
  <p>I've seen another question similar to this but the answer suggests looking at jMock instead which doesn't help.</p>