title: Get and print out the element using xpath
body: <pre><code>&lt;table id="versionId" class="displayTable" cellspacing="0" cellpadding="0" rules="groups" style="width:100%;border-right:1px solid #DFDFDF;border-left:1px solid #DFDFDF;"&gt;
  &lt;caption class="displayCaption"&gt;
  &lt;thead&gt;
  &lt;tbody&gt;
  &lt;tr class="rowOdd"&gt;
  &lt;td style="width:1%"&gt;
  &lt;td style="width:15%;"&gt;
  &lt;span class="font"&gt;1&lt;/span&gt;
  &lt;/td&gt;
  &lt;td style="width:12%"&gt;
  &lt;td style="width:10%"&gt;
  &lt;td style="width:10%"&gt;
  &lt;td style="width:13%"&gt;
  &lt;td style="width:18%"&gt;
  =======
  </code></pre>
  
  <p>any way i can get that 1 and print out?</p>
  
  <p>i tried out this <code>.//*[@id='versionId']/tbody/tr/td[2]/span/text()</code>:</p>
  
  <pre><code>System.out.println(driver.findElement(By.xpath(".//*[@id='versionId']/tbody/tr/td[2]/span/text()")));
  </code></pre>
  
  <p>it return me with error:</p>
  
  <p>The given selector .//<em>[@id='versionId']/tbody/tr/td[2]/span/text() is either invalid or does not result in a WebElement. The following error occurred:
  InvalidSelectorError: The result of the xpath expression ".//</em>[@id='versionId']/tbody/tr/td[2]/span/text()" is: [object XrayWrapper [object Text]]. It should be an element.</p>
  
  <p>HELP D:</p>