title: How to get P tags found in div tags with selenium webdriver
body: <p>I want to get all of the P tags that is found inside the div tag I just want to get the size so I've tried this line of code </p>
  
  <p><code>driver.findElements(By.xpath(".//*[@id='googleresults']/div/table[3]/tbody/tr/td/div")).size()</code></p>
  
  <p>I got this xpath from fireBug but this line code gives me 0</p>
  
  <pre><code>&lt;document&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;body&gt;
  &lt;div id="googleresults"&gt;
  &lt;div class="tab-container"&gt;
  &lt;!-- Please enter html code below. --&gt;
  &lt;table cellspacing="0" cellpadding="0" border="0"/&gt;
  &lt;table width="100%" cellspacing="0" cellpadding="0" border="0"&gt;
  &lt;table width="100%" cellspacing="0" cellpadding="0" border="0" bgcolor="#ffffff"&gt;
  &lt;!--tro2--&gt;
  &lt;div&gt;
  &lt;p class="g"&gt;
  &lt;br/&gt;
  &lt;p class="g"&gt;
  &lt;br/&gt;
  &lt;p class="g"&gt;
  &lt;br/&gt;
  &lt;p class="g"&gt;
  &lt;br/&gt;
  &lt;p class="g"&gt;
  &lt;br/&gt;
  &lt;p class="g"&gt;
  &lt;br/&gt;
  &lt;p class="g"&gt;
  &lt;br/&gt;
  &lt;p class="g"&gt;
  &lt;br/&gt;
  &lt;p class="g"&gt;
  &lt;br/&gt;
  &lt;p class="g"&gt;
  &lt;br/&gt;
  &lt;/div&gt;
  &lt;center&gt;
  &lt;span class="p"&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  &lt;/document&gt;
  </code></pre>