title: Get <p> content using Selenium webdriver - Java
body: <pre><code>&lt;div id="address" class="guideFieldDescription short" style="null;display:none"&gt;
  &lt;p&gt;
      Enter home address for the contact person. Leave blank if you don't have one. Home Address and Mailing Address must be located in the United States. No international addresses will be accepted. If the home addresses and mailing addresses are different, you must fill out both sections.&lt;br&gt;
  &lt;/p&gt;
  </code></pre>
  
  <p></p>
  
  <p>I'm trying to get the <p> tag content but I'm getting either null or empty using the script below </p>
  
  <pre><code>WebElement WebElement = driver.findElement(By.xpath("//*[@id='address']"));     
  List&lt;WebElement&gt; paras = WebElement.findElements(By.tagName("p"));
  
  System.out.println("Size = " + paras.size() + "   " + paras.toString() );
  
  for (WebElement para : paras) {
    System.out.println(para.getText());}
  </code></pre>
  
  <p>I get the size is = 1, but the getText() return empty. </p>