title: Wait Until is not present, not working in Selenium C#
body: <p>I am trying to test if a loading spinner is still on the page, so when it disappears I can check the other elements, but if I use something like:</p>
  
  <pre><code>WebDriverWait wait = new WebDriverWait(this.Driver, TimeSpan.FromMinutes(2));
  wait.Until(driver =&gt; !driver.FindElement(By.CssSelector(css)).Displayed);
  </code></pre>
  
  <p>It throws <code>NoSuchElementException</code>, I've had similar error when I try to check if element exists, without using <code>!</code> and also it would throw an error in some other parts of the code.</p>
  
  <p>It seems that the <code>Until</code> is not working properly, since it waits 2 minutes to later throw an exception, and the element is just there.</p>