title: Selenium WebDriver: findElements only returns the first 2 instances of element
body: <p>I'm trying to gather a list of <code>webelements</code> from an <code>AJAX</code> dropdown menu to iterate over for verifying the value of each item.</p>
  
  <p>The way I've done that is by this code:</p>
  
  <pre><code>List&lt;WebElement&gt; names = new ArrayList&lt;WebElement&gt;();
  names = pgNew.driver.findElements(By.className("col1"));
  </code></pre>
  
  <p>However, when I run this, <code>names</code> only takes in the first two items by the <code>className col1</code> and not all 15. Instead, it stores the last 13 spots as blank. For example, if it was supposed to take in:</p>
  
  <p>a, b, c, d, e, f, g, h, i, j, k, l, m, n, o</p>
  
  <p>it only takes in:</p>
  
  <p>a, b, ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '</p>
  
  <p>Any ideas?</p>
  
  <p>EDIT:</p>
  
  <p>Here is the html code:</p>
  
  <pre><code>&lt;div class="iceSelInpTxt patientAutoComplete"&gt;
      &lt;input id="mainForm:TextBox"&gt;
      &lt;div id="mainForm:TextBox_div"&gt;
          &lt;div&gt;
              &lt;div class="iceSelInpTxtSelRow AutoCompleteSelRow"&gt;
                  &lt;span class="informal"&gt;
                      &lt;table class="table" width="100%"&gt;
                          &lt;tbody&gt;
                              &lt;tr style="cursor: pointer;"&gt;
                                  &lt;td class="col1"&gt;Text&lt;/td&gt;
                                  &lt;td class="col3"&gt;Text&lt;/td&gt;
                                  &lt;td class="col1"&gt;Text&lt;/td&gt;
                              &lt;/tr&gt;
                          &lt;/tbody&gt;
                      &lt;/table&gt;
                  &lt;/span&gt;
                  &lt;span style="visibility:hidden;display:none;"&gt;MRN5218317218&lt;/span&gt;
              &lt;/div&gt;
              &lt;div class="iceSelInpTxtRow pAutoCompleteSelRow"&gt;
              &lt;div class="iceSelInpTxtRow pAutoCompleteSelRow"&gt;
              &lt;div class="iceSelInpTxtRow pAutoCompleteSelRow"&gt;
              &lt;div class="iceSelInpTxtRow pAutoCompleteSelRow"&gt;
              &lt;div class="iceSelInpTxtRow pAutoCompleteSelRow"&gt;
              &lt;div class="iceSelInpTxtRow pAutoCompleteSelRow"&gt;
              &lt;div class="iceSelInpTxtRow pAutoCompleteSelRow"&gt;
              &lt;div class="iceSelInpTxtRow pAutoCompleteSelRow"&gt;
              &lt;div class="iceSelInpTxtRow pAutoCompleteSelRow"&gt;
              &lt;div class="iceSelInpTxtRow pAutoCompleteSelRow"&gt;
              &lt;div class="iceSelInpTxtRow pAutoCompleteSelRow"&gt;
              &lt;div class="iceSelInpTxtRow pAutoCompleteSelRow"&gt;
              &lt;div class="iceSelInpTxtRow pAutoCompleteSelRow"&gt;
              &lt;div class="iceSelInpTxtRow pAutoCompleteSelRow"&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;input type="hidden" name="mainForm:TextBox_idx" style="" value=""&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>the following "iceSelInpTxtRow pAutoCompleteSelRow" are all the same with different values for "col1", "col3" and "col1".</p>
  
  <p>Also, a note, this issue is only happening in FireFox.</p>