title: XPath strict contains() function
body: <p>I'm using xpath's contains function to find elements that contain some text, like this:</p>
  
  <pre><code>//td[contains(text(),'foo')]
  </code></pre>
  
  <p>But if the page, for example, contains two <code>td</code> elements, that contain <code>foo</code> and <code>foo bar</code> respectively, the above xpath will return both of them.
  Is there any kind of strict <code>contains</code>, that will return only the element with text <code>foo</code>, but not the one with <code>foo bar</code>?</p>