title: Selenium wait until any element with a given class is visible
body: <p>I'm writing some Selenium tests to make sure my autocompletes are working properly, and I need to give a bit of a delay between entering text in the input field and trying to select from the autocomplete. Rather than just using a fixed delay, I'd rather wait until the list appears. I've tried the following: </p>
  
  <pre><code>input_element.send_keys("zanzibar c")
  WebDriverWait(self.selenium, 10).until(EC.visibility_of_element_located((By.CLASS_NAME, "pac-container")))
  input_element.send_keys(Keys.DOWN)
  </code></pre>
  
  <p>where <code>pac-container</code> is the class of the autocomplete's list element.</p>
  
  <p>This works for the first input with an autocomplete, but times out for the rest. I'm guessing this is happening because it is waiting for the first <code>pac-container</code> to be visible, whereas I want it to wait for <em>any</em> one of the <code>pac-container</code>s to be visible. </p>
  
  <p>Is there a way to wait until at least one element with a given class is visible?</p>