title: Webdriver Automation - Unable to find element using xpath
body: <p>Environment:
  Eclipse - Java - Junit - firefox webdriver</p>
  
  <p>Screen shot url : <a href="https://www.dropbox.com/s/26fl2l1y1mkpxiz/Screenshot%202014-01-06%2001.52.43.png" rel="nofollow noreferrer">https://www.dropbox.com/s/26fl2l1y1mkpxiz/Screenshot%202014-01-06%2001.52.43.png</a></p>
  
  <p>I am trying to test a webpage but unable to find element (looks like a button).
  Firebug xpath is :<code>.//*[@id='DERIVED_REGFRM1_LINK_ADD_ENRL$118$']</code> </p>
  
  <p>With the same Xpath, it works correctly with selenium IDE (By recording).</p>
  
  <p>It's html code is:</p>
  
  <pre><code>&lt;td valign="top" align="left"&gt;
      &lt;div id="win0divDERIVED_REGFRM1_LINK_ADD_ENRL$118$"&gt;
          &lt;span class="SSSBUTTON_CONFIRMLINK" title="Enroll in Classes"&gt;
              &lt;a id="DERIVED_REGFRM1_LINK_ADD_ENRL$118$" class="SSSBUTTON_CONFIRMLINK" 
              href="javascript:submitAction_win0(document.win0,
      'DERIVED_REGFRM1_LINK_ADD_ENRL$118$');" 
      tabindex="192" ptlinktgt="pt_peoplecode" 
      name="DERIVED_REGFRM1_LINK_ADD_ENRL$118$"&gt;Proceed to Step 2 of 3&lt;/a&gt;
          &lt;/span&gt;
      &lt;/div&gt;
  &lt;/td&gt;
  </code></pre>
  
  <p>I have tried my finding By.xpath, id, etc.
  eg: <code>driver.findElement(By.xpath("//*[@id='DERIVED_REGFRM1_LINK_ADD_ENRL$118$'] ")).click();</code></p>
  
  <p>What is the correct solution?</p>