title: WebDriver getting the label tag value using Java
body: <p>HTML code:</p>
  
  <pre><code>&lt;label id="busquedaSimpleForm:j_idt36" class="ui-outputlabel ui-widget"&gt;Results found: 2&lt;/label&gt;
  </code></pre>
  
  <p>From the above label, I want to get the <code>Results found: 2</code> value.</p>
  
  <p>Below is my Java source code:</p>
  
  <pre><code>WebElement tf = driver.findElement(By.xpath("//label[@id='busquedaSimpleForm:j_idt36']"));
  String fdl = tf.getAttribute("value");
  System.out.println(fdl);
  </code></pre>
  
  <p>But my source code output becomes empty.</p>
  
  <p>Please help me what is the problem on my XPath.</p>