list all the check boxes from a web page selenium

List checkBoxes = driver.findElements(By.xpath(“//input[@type=’checkbox’]”));
for (WebElement checkBox: checkBoxes) {
System.out.println(checkBox.getAttribute()); // to iterate over each checkbox element.
}

No images available.