I\'m using Selenium 2 (Webdriver) for automating tests on a webpage. However I wonder if there is way to check checkbox from the list of checkboxes using webdriver framework
Try using this piece of code written in java
String checkboxes = "//*[@type='checkbox']"; List elementToClick = driver.findElements(By.xpath(checkboxes)); for (WebElement AllCheck : elementToClick) { AllCheck.click(); }