title: Store values in a List using a For loop
body: <p>I am trying to store values from a loop in a list. My code is:</p>
  
  <pre><code>int count = 100;
  for(int i=0;i&lt;=count;i++)
  {
      my code to get the text:
      m.gettextfromelement("xpath");
  }
  </code></pre>
  
  <p>Need code to store values in a list</p>