title: Selenium Web Driver Ruby- Element not visible exception
body: <p>The web page snippet looks like this:</p>
  
  <pre><code>&lt;div id="HPSearchInput"&gt;
  &lt;form&gt;
  &lt;ul&gt;&lt;/ul&gt;
  &lt;input type="submit" data-ember-action="3" class="ch-btn searchBtn"        value="Search"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>I am using the following css selector to click on the search button:</p>
  
  <pre><code>wait = Selenium::WebDriver::Wait.new(:timeout =&gt; 10) # seconds
  wait.until { (driver.find_element(:css =&gt; "#HPSearchInput &gt; form &gt; input.ch-  btn.searchBtn")).click() }
  </code></pre>
  
  <p>It is giving me the error: ElementNotVisibleError</p>
  
  <p>Where am I going wrong?</p>