title: Unable to find element with css selector
body: <p>Using Selenium Webdriver for FF/IE using C# (.Net)</p>
  
  <p>Below is my page source and I am trying to use the CssSelector to find/contains the particular name from my page and i have tried with the below code but resulting in error, any help?</p>
  
  <p>//code</p>
  
  <pre class="lang-java prettyprint-override"><code>driver.FindElement(By.CssSelector("td:contains('John John')"))
  </code></pre>
  
  <p>//error:</p>
  
  <pre><code>e {"Unable to find element with css selector == td:contains('John John')"}  System.Exception {OpenQA.Selenium.NoSuchElementException}
  </code></pre>
  
  <p>//my html code:</p>
  
  <pre class="lang-html prettyprint-override"><code> &lt;div id="ctl00_ContentPlaceHolder1_AddeCardControl1_gv_ctl01_RecordCount" style="float:right; padding-right:10px; margin-top:3px;"&gt;
    &lt;b&gt;308&lt;/b&gt; Items Found
   &lt;/div&gt;
   &lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr class="item"&gt;
   &lt;td align="center"&gt;&lt;a href="javascript:__doPostBack('ctl00$ContentPlaceHolder1$AddControl1$gv','Select$0')"&gt;Edit&lt;/a&gt;&lt;/td&gt;
   &lt;td align="center" style="width:15px;"&gt;&lt;/td&gt;
   &lt;td&gt;John John&lt;/td&gt;
   &lt;td&gt;&amp;nbsp;&lt;/td&gt;
   &lt;td&gt;&amp;nbsp;&lt;/td&gt;
   &lt;td&gt;&amp;nbsp;&lt;/td&gt;
   &lt;td&gt;&lt;img src="check.png" alt='Active' style='display: ;' /&gt;&lt;/td&gt;
   &lt;td&gt;9/7/2012 11:15:08 PM&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr class="altItem"&gt;
   &lt;td align="center"&gt;&lt;a href="javascript:__doPostBack('ctl00$ContentPlaceHolder1$AddControl1$gv','Select$1')"&gt;Edit&lt;/a&gt;&lt;/td&gt;
   &lt;td align="center" style="width:15px;"&gt;&lt;/td&gt;
   &lt;td&gt;John Schulz&lt;/td&gt;
   &lt;td&gt;&amp;nbsp;&lt;/td&gt;
   &lt;td&gt;Visitors&lt;/td&gt;
   &lt;td&gt;&amp;nbsp;&lt;/td&gt;
   &lt;td&gt;&lt;img src="check.png" alt='Active' style='display: ;' /&gt;&lt;/td&gt;
   &lt;td&gt;9/7/2012 6:28:29 PM&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr class="item"&gt;
   &lt;td align="center"&gt;&lt;a href="javascript:__doPostBack('ctl00$ContentPlaceHolder1$AddControl1$gv','Select$2')"&gt;Edit&lt;/a&gt;&lt;/td&gt;
   &lt;td align="center" style="width:15px;"&gt;&lt;/td&gt;
   &lt;td&gt;Parker Smith&lt;/td&gt;
   &lt;td&gt;&amp;nbsp;&lt;/td&gt;
   &lt;td&gt;Visitors&lt;/td&gt;
   &lt;td&gt;&amp;nbsp;&lt;/td&gt;
   &lt;td&gt;&lt;img src="check.png" alt='Active' style='display: ;' /&gt;&lt;/td&gt;
   &lt;td&gt;9/7/2012 6:01:28 PM&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr class="altItem"&gt;
   &lt;td align="center"&gt;&lt;a href="javascript:__doPostBack('ctl00$ContentPlaceHolder1$AddControl1$gv','Select$3')"&gt;Edit&lt;/a&gt;&lt;/td&gt;
   &lt;td align="center" style="width:15px;"&gt;&lt;/td&gt;
   &lt;td&gt;Test 123&lt;/td&gt;
   &lt;td&gt;&amp;nbsp;&lt;/td&gt;
   &lt;td&gt;Visitors&lt;/td&gt;
   &lt;td&gt;&amp;nbsp;&lt;/td&gt;
   &lt;td&gt;&lt;img src="check.png" alt='Active' style='display: ;' /&gt;&lt;/td&gt;
   &lt;td&gt;9/7/2012 1:36:45 PM&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr class="item"&gt;
   &lt;td align="center"&gt;&lt;a href="javascript:__doPostBack('ctl00$ContentPlaceHolder1$AddControl1$gv','Select$4')"&gt;Edit&lt;/a&gt;&lt;/td&gt;
   &lt;td align="center" style="width:15px;"&gt;
  </code></pre>