title: How to use xpath 'not' statement in Selenium?
body: <p>I am using selenium to automate some test cases but I am having some issues finding some elements that don't have a certain style. I have created this Xpath that works perfectly in Chrome but when I run it using selenium it doesn't work as I want.</p>
  
  <p>XPATH: <code>./td[not(contains(@style, 'foo'))]</code></p>
  
  <p>So basicaly the HTML looks like this:</p>
  
  <pre><code>&lt;tr id='something'&gt;
     &lt;td style='foo'&gt;&lt;td/&gt;
     &lt;td style='foo'&gt;&lt;td/&gt;
     &lt;td style='foo'&gt;&lt;td/&gt;
     &lt;td style='foo'&gt;&lt;td/&gt;
     ...
     &lt;td&gt;1&lt;td/&gt;
     &lt;td&gt;2&lt;td/&gt;
     &lt;td&gt;3&lt;td/&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>So basically I want the last 3 tds so First I get the row and then I sent the Xpath. . . something like this:</p>
  
  <pre><code>var row = driver.FinElement(By.Id("something"));
  ReadOnlyCollection&lt;IWebElement&gt; items = row.FindElements(By.Xpath(./td[not(contains(@style, 'foo'))];
  </code></pre>
  
  <p>But as a result I am getting all the children of the tr.</p>
  
  <p>Any Idea why the Xpath is working on Chrome developer tools and don't  work with selenimun IE driver?</p>