title: Wait in Selenium not functioning for a given element
body: <p>I am attempting to make WebDriver wait for an element to appear, but I only have a few bits of code to go off. Heres the html body content for the button; </p>
  
  <pre><code>&lt;input class="btn" value="Analyze" type="button" data-bind="click:$root.windowsAnalysis.analyzeFilesClick,enable:$root.windowsAnalysis.analyzeFilesEnabled"&gt;
  </code></pre>
  
  <p>I have added the below line to my test but it is not making the WebDriver 'Wait'.</p>
  
  <pre><code> new WebDriverWait(Login.driver,10).until(ExpectedConditions.visibilityOf
  (Login.driver.findElement(By.cssSelector("input[@class='btn'][@value='Analyze']"))));
  </code></pre>
  
  <p>Any ideas?</p>
  
  <p>Many Thanks in advance</p>