title: Selenium wait until one of two elements are visible
body: <p>How could I wait until one of two elements is visible? I'm currently using ExpectedConditions - example of usage is,</p>
  
  <pre><code>WebDriverWait wait = new WebDriverWait(driver, TimeSpan.FromSeconds(30));
  
  IWebElement waitresponse = wait.Until(ExpectedConditions.ElementIsVisible(By.XPath("example')]")));
  </code></pre>
  
  <p>but that is only relevant to one element, how can I add a OR?</p>
  
  <p>Attempted example,</p>
  
  <pre><code>IWebElement waitresponse = wait.Until(ExpectedConditions.ElementIsVisible(By.XPath("example')]") || (By.XPath("Example2")));
  </code></pre>
  
  <p>However no luck using</p>
  
  <pre><code>||
  </code></pre>
  
  <p>maybe my syntax is wrong?</p>