Wait for multiple elements presents
import java.io.IOException; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; import org.testng.annotations.Test; public class waitForMultipleElements { WebDriver driver = new FirefoxDriver(); public boolean isElementPresent(By by) { try { driver.findElements(by); return true; } catch (org.openqa.selenium.NoSuchElementException e) { return false; } } public void waitForMultipleElementsPresents(By[] by, int time) throws InterruptedException { int length = by.length; for (int i = […]