title: Handling webtables that load on scroll using selenium
body: <p>So here is a question that has and is always a blocker for me during automation using any tool. A solution using selenium would be what i need, however, solutions with any tool or API is most welcome.</p>
  
  <p>Objective:- Read all rows from a webtable
  Current solution:- get total rows using selenium ( here in selenium we try to get the total number of  tags to get the rows and then iterate them to get the values. This works well in a normal scenario. </p>
  
  <p>The problem:- in a few applications we have tables, or other elements which are AJAX driven ( can be some other tech as well ) which due to the magnitude of data load it lazily or loads when we scroll to the last row of the table.</p>
  
  <pre><code>1. So when I read the table now it will have rows: 1 to 10
  2. when i scrool down i get rows from 5 to 15 
  3. This can go on.. 
  </code></pre>
  
  <p>Manually when we go to verify data is scroll down and let it load dynamically. Through automation, we are able to scroll, but this approach is very unstable.</p>
  
  <p>Current solution:- Scroll down the table using clicks, scroll action using a mouse emulator but just a little bit and continue reading data, and continue till the entire table is read.</p>
  
  <p>Issue:- This approach is 
                  1. Too slow and inefficient.
                  2. Unstable</p>
  
  <p>What would be your solution to this problem. ( note:- reading from database works, but UI validation is not achieved )</p>