title: "text()" property of xpath is not working for a textnode as per the below mentioned code through Selenium
body: <p>Code:</p>
  
  <pre><code>&lt;div class="content"&gt;
    &lt;div id="tab"&gt;
      &lt;div class="row"&gt;
        &lt;div class="col-sm-12"&gt;
          &lt;div&gt;
            &lt;div&gt;
              &lt;div&gt;
              &lt;/div&gt;
              &lt;div&gt;
                &lt;p&gt;&lt;span&gt;01&lt;/span&gt;&lt;/p&gt;
                &lt;p class="className"&gt;&lt;span id=""&gt;parent&lt;/span&gt;
                  Child 
                &lt;/p&gt;
              &lt;/div&gt;
            &lt;/div&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>"parent" and "child" are in same p tag. I can easily locate "parent" with:</p>
  
  <pre><code>//*[@id="tab"]/div/div/div[1]/div[1]/div[2]/p/span
  </code></pre>
  
  <p>but can't able to locate "child" separately.</p>
  
  <p>I tried with all the possibilities mentioned below, but of no use,</p>
  
  <pre><code>//*[@id="tab"]/div/div/div[1]/div[1]/div[2]/p/text()
  //*[@id="tab"]/div/div/div[1]/div[1]/div[2]/p/text()[contains(.,'child')]
  </code></pre>
  
  <p>All the above queries are working fine in online editor but when I run it in java ide, it is showing "element absent on the page"!</p>
  
  <p>Any suggestions would be helpful!</p>