I want use wait.until(ExpectedConditions) with TWO elements. I am running a test, and I need WebDriver to wait until either of Element1 OR
wait.until(ExpectedConditions)
WebDriver
There is an alternative way to wait but it isnt using expected conditions and it uses a lambda expression instead..
wait.Until(x => driver.FindElements(By.Xpath("//h3[@class='... ']")).Count > 0 || driver.FindElements(By.Xpath("//h2[@class='... ']")).Count > 0);