title: Selenium - Java - findelements by classname does not return all elements
body: <p>Below is my code snippet. </p>
  
  <pre><code>List&lt;WebElement&gt; e=driver.findElements(By.className("&lt;this class name&gt;"));  
  System.out.println(e.size());
  </code></pre>
  
  <p>There are 50 elements with this class name in the page, however, only 40 are returned. The div class being queried above is nested within other div classes. However, all elements are in exact same structure. Elements are structured in tabular format of 5 columns and 10 rows.</p>
  
  <p>I am able to access the elements that are not returned by using their respective xpath.</p>
  
  <p>Selenium : 3.11.0 <p>
  Browser - Chrome Version 65.0.3325.181<p>
  ChromeDriver 2.36.540470</p>
  
  <p>Appreciate any suggestions on resolving this issue to return all 50 elements.</p>
  
  <p>Adding more information in the question for future references.
  - By default only 7 rows of data are visible. Needed to scroll down to see rest of the rows.
  - Validated the same by using .isDisplayed() for the element and all elements on 8th row and below returned false as expected.
  - immediately after the page is displayed, inspecting the page and searching manually, all elements are present in the page.</p>