title: How to get element's text without retrieving the text from its descendant
body: <p>I have the following HTML</p>
  
  <pre><code>&lt;div class="t-beaneditor-row"&gt;
      &lt;label&gt;Login ID&lt;/label&gt;
      SeleniumReset
  &lt;/div&gt;
  </code></pre>
  
  <p>I want to retrieve the string "SeleniumReset" from the HTML using WebDriver Java. I have tried </p>
  
  <pre><code>driver.findElement(By.xpath("//div")).getText()
  </code></pre>
  
  <p>but it is giving me "Login ID SeleniumReset". How to I retrieve "SeleniumReset" only?</p>