title: Locating text that contains a certain string with space?
body: <p>I am having a problem locate text containing at least two words.</p>
  
  <p>I need the next one:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;a e="k44.3" href="http://www.example.com"&gt;hello world&lt;/a&gt;
  </code></pre>
  
  <p>and my XPath expression is:</p>
  
  <pre class="lang-java prettyprint-override"><code>driv.findElement(By.xpath("//*[contains(text(),'hello world')]")).click();
  </code></pre>
  
  <p>But XPath took only the first word (output) from console:</p>
  
  <pre class="lang-xml prettyprint-override"><code>  &lt;a e="k77.4" href="http://www.example.com"&gt;hello&lt;/a&gt;
  </code></pre>
  
  <p>How can I select the the one with the 'hello world'?</p>