title: Python selenium : Explicitly wait for one of two elements to be loaded
body: <p>Is there a way using which I can wait for one of two elements to get loaded in selenium. I am using explicit waits and so far, haven't been able to figure out the solution.</p>
  
  <p>Simply doing </p>
  
  <pre><code>WebDriverWait(driver,5).until(lambda driver : driver.find_element(By.ID,"a") or driver.find_element(By.ID,"b"))
  </code></pre>
  
  <p>doesn't seem to work. It just looks for element with id ="a". </p>
  
  <p>Thanks!</p>