title: Selenium WebDriver get child elements of type table of a Div
body: <p>I have a div element that has a few tables as children. The problem is that I need to scroll in order to get to some tables, so if I use <code>webElement.getElements(By.xpath("//table[@id='data']"))</code> I only get the first two elements (all table elements have the same ID).</p>
  
  <p>I need a way to get them all or somehow scroll the div and just keep reading elements.
  My selenium version is 2.37.1 I'm using it with Internet Explorer 8. I am not able to provide the code.</p>
  
  <pre><code>&lt;div id="statistics" style="overflow-y: auto; overflow-x:hidden;"&gt;
  
  &lt;table id="header" width="50%" cellspacing="0" cellpadding="0" style="margin:0;"&gt;    &lt;/table&gt;
  &lt;table id="data" width="50%" cellspacing="1" cellpadding="0" style="font-size: 12px;border:1px solid #5c9ccc;"&gt;&lt;/table&gt;
  &lt;div id="separator"&gt;&lt;/div&gt;
  &lt;table id="header" width="50%" cellspacing="0" cellpadding="0" style="margin:0;"&gt;&lt;/table&gt;
  &lt;table id="data" width="50%" cellspacing="1" cellpadding="0" style="font-size: 12px;border:1px solid #5c9ccc;"&gt;&lt;/table&gt;
  &lt;div id="separator"&gt;&lt;/div&gt;
  &lt;table id="header" width="50%" cellspacing="0" cellpadding="0" style="margin:0;"&gt;&lt;/table&gt;
  &lt;table id="data" width="50%" cellspacing="1" cellpadding="0" style="font-size: 12px;border:1px solid #5c9ccc;"&gt;&lt;/table&gt;
  &lt;div id="separator"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>Ok, so I managed to get permission to post part of the html. Thats the div that has alot of tables as children. Of those children, i need to read all of the table with id="data"</p>