title: How do I get the value inside a <td> tag with xpath/htmlwebunit
body: <p>I am trying to create a Java Application that retrieves information from a webpage. This is part of the code I am trying to access the value in the 1st td tag in the 2nd tr tag: </p>
  
  <pre><code>&lt;TABLE  CLASS="datadisplaytable" width = "100%"&gt;
  &lt;TR&gt;
      &lt;TD CLASS="dddead"&gt;&amp;nbsp;&lt;/TD&gt;
      &lt;TH CLASS="ddheader" scope="col" &gt;&lt;SPAN class="fieldlabeltext"&gt;Capacity&lt;/SPAN&gt;&lt;/TH&gt;
      &lt;TH CLASS="ddheader" scope="col" &gt;&lt;SPAN class="fieldlabeltext"&gt;Actual&lt;/SPAN&gt;&lt;/TH&gt;
      &lt;TH CLASS="ddheader" scope="col" &gt;&lt;SPAN class="fieldlabeltext"&gt;Remaining&lt;/SPAN&gt;&lt;/TH&gt;
  &lt;/TR&gt; 
  &lt;TR&gt;
      &lt;TH CLASS="ddlabel" scope="row" &gt;&lt;SPAN class="fieldlabeltext"&gt;Seats&lt;/SPAN&gt;&lt;/TH&gt;
      **&lt;TD CLASS="dddefault"&gt;46&lt;/TD&gt;**
      &lt;TD CLASS="dddefault"&gt;46&lt;/TD&gt;
      &lt;TD CLASS="dddefault"&gt;0&lt;/TD&gt;
  &lt;/TR&gt;
  </code></pre>
  
  <p>This is what i have right now but this only returns the class of the td tag and not the value inside it:</p>
  
  <pre><code>List&lt;?&gt; table = page.getByXPath("//table[@class='datadisplaytable'][1]//tr[2]/td");
  </code></pre>
  
  <p>How would I go about getting the value of the td tag and not its properties?</p>
  
  <p>edit: The code above returns this:</p>
  
  <pre><code>HtmlTableDataCell[&lt;td class="dddefault"&gt;]
  </code></pre>