title: Selenium waiting until element equals something
body: <p>C#, Winform, Selenium Firefox webdrivers.</p>
  
  <p>Basically I need to wait till a certain element equals something in my program this is what i tried</p>
  
  <pre><code>public static string Watchprogress;
  
  
  Watchprogress = driver.FindElement(By.XPath("//*[@id='watch-toolbar']/aside/div/span")).Text.ToString();
  WebDriverWait wait = new WebDriverWait(driver, TimeSpan.FromSeconds(90)).Until(Watchprogress == "3");
  
   //And this
  
   WebDriverWait wait = new WebDriverWait(driver, TimeSpan.FromSeconds(90)).Until(By.XPath("//*[@id='watch-toolbar']/aside/div/span")).Text.ToString() == "3");
  </code></pre>
  
  <p>got this error </p>
  
  <p>The type arguments for method 'OpenQA.Selenium.Support.UI.DefaultWait.Until(System.Func)' cannot be inferred from the usage. Try specifying the type arguments explicitly. 5079</p>
  
  <p>Still kinda new to selenium so i've been just doing trial and error.</p>