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