title: XPath //div[contains(text(), 'string')] fails to select divs containing 'string'
body: <p>This is the HTML code:</p>
  
  <pre><code>&lt;div&gt;  &lt;span&gt;&lt;/span&gt;  Elangovan  &lt;/div&gt;
  </code></pre>
  
  <p>I want to write an XPath for the <code>div</code> based on its contained text.  I tried</p>
  
  <pre><code>//div[contains(text(),'Elangovan')]
  </code></pre>
  
  <p>but this is not working.</p>