title: Need help finding xpath of input field beside label
body: <p>I have a dom structure like this</p>
  
  <pre><code>&lt;tr class=""&gt;
  &lt;td class="labelCol requiredInput"&gt;
      &lt;label for="name_lastacc2" class=""&gt;
          &lt;span class="requiredMark"&gt;*&lt;/span&gt;
      Last Name&lt;/label&gt;
  &lt;/td&gt;
  &lt;td class="dataCol col02"&gt;
      &lt;div class="requiredInput"&gt;
          &lt;div class="requiredBlock"&gt;&lt;/div&gt;
          &lt;input id="name_lastacc2" maxlength="80" name="name_lastacc2" size="20" tabindex="3" type="text"&gt;&lt;/div&gt;
      &lt;/td&gt;
      &lt;td class="labelCol"&gt;
          &lt;label for="00NG0000008Rybp"&gt;Business Ext.&lt;/label&gt;
      &lt;/td&gt;
      &lt;td class="dataCol"&gt;
          &lt;input id="00NG0000008Rybp" maxlength="10" name="00NG0000008Rybp" size="20" tabindex="22" type="text"&gt;&lt;/td&gt;
      &lt;/tr&gt;
  </code></pre>
  
  <p>I am trying to find the input box next to its label.</p>
  
  <p>Eg: </p>
  
  <p>Last Name: ________________</p>
  
  <p>I have tried using xpath queries like </p>
  
  <pre><code>//label[contains(text(),'Last Name']/../following-sibling::*/div/input[@type='text'] 
  </code></pre>
  
  <p>but i get an [INVALID XPATH EXPRESSION] error. Where am i going wrong ?</p>