Selenium: isElement Present / Exists

Last updated on:

if(driver.findElements(By.cssSelector("#ext-gen436")).size() != 0){
            System.out.println("Element Present on the Page");
        } else {
            System.out.println("Element is Not Present in The Page");
        }
View Comments

Leave a Comment

Use markdown or basic HTML and be nice.