Selenium Remote Control

selenium.isElementPresent(“locator”)

Selenium WebDriver

driver.findElement(By.id(“locator”)).isDisplayed()

or

int exists = driver.findElements(By.id(“locator”)).size()
while(exists != 0){
    conditions
    exists = driver.findElements(By.id(“locator”)).size()
}
share me!:))Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInEmail this to someonePrint this page