title: XPath to CSS Selector
body: <p>I have the following xpath statement in a selenium test:</p>
  
  <pre><code>//tbody/tr[td/span[text()='IPODate']]/td[4]/input
  </code></pre>
  
  <p>It gets what I want but my tests are painfully slow in IE6. Anyone know how I would do the same selector as CSS selectors? I think I understand how to do each of these with exception to the text()="IPODate" part.</p>
  
  <p>As requested here is an example of the table I am trying to select from:</p>
  
  <pre><code>&lt;table cellspacing="0" cellpadding="4" border="0" id="tblResearchItems" class="coolTable SingleItem"&gt;
          &lt;tbody&gt;
  </code></pre>
  
  <p>.... many many rows
      </p>
  
  <pre><code>&lt;td&gt;
      &lt;input type="button" value="A" onclick="sA('secm.Company', 'IPODate', 299)" class="RButton NarrowButton2 A Show_N"/&gt;
  &lt;/td&gt;
  &lt;td class="TCN"&gt;
      &lt;span class="CN"&gt;IPODate&lt;/span&gt;&lt;f/&gt;
  &lt;/td&gt;
  &lt;td&gt;
      &lt;g/&gt; 
  &lt;/td&gt;
  &lt;td class="TCV VerticalAlign"&gt;
      &lt;input type="text" value="" onfocus="stLT(); hideLB(true)" onblur="mustBeDate($(this));" class="UpUI_Y  date NDD hasDatepicker" id="dp1260909771780"/&gt;
      &lt;img class="ui-datepicker-trigger" src="../images/calendar.gif" alt="..." title="..."/&gt; &lt;div/&gt;
  &lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>...many many more rows...
      
      </p>
  
  <p>in this example only one row has the IPODate cell.</p>