title: Is there a way to use findElements and limit the results to the first x items
body: <p>I have a table which can vary greatly in the number of columns it contains (20 columns up to 10,000).  I have a method which gets the table data so that I can compare the data values, but I generally only need values which occur in the first few columns.  To get the column data from a row I am using:</p>
  
  <pre><code>List&lt;WebElement&gt; columns = rows.get(rnum).findElements(By.tagName("td"));
  </code></pre>
  
  <p>This gets the columns (td elements) for row number rnum in the table.</p>
  
  <p>My question is: is there a way to limit findElements to return only the first xx number of results?  maybe return only the first 100 columns?  The method works great when there are 20 columns, but takes forever when there are 10000 columns.  Or, is there a better way to iterate the row data's TD elements so that I can break from the loop when I've found the column that I want?</p>