title: Selenium getAttribute from in between tags?
body: <p>That's my source I want to verify with selenium:</p>
  
  <pre><code>&lt;tr class="myclass"&gt;
      &lt;td class="column" style="width:50%"&gt; Key &lt;/td&gt;
      &lt;td style="width:50%"&gt; Value &lt;/td&gt;
      &lt;td style="width:50%"&gt; &amp;nbsp; &lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>I want to verify that he word "Values" is contained there.</p>
  
  <p>Following statement always returns: "Key" instead of "Values"</p>
  
  <pre><code>driver.findElement(By.xpath("//tr[td[contains(text(), 'Key')]]/td")).getText();
  </code></pre>
  
  <p>What am I doing wrong? How can I get the text of my xpath expression?</p>