As there are five number of check boxes in a page, i have selected two check boxes. so i want to get the number of size as two check box selected. How to get the number of size as two in selenium web-driver?
List<WebElement> boxes = driver.findElements(By.name("vehicle")).click();
+ "Number of check boxes present in the page");
it gives me the entire number of check boxes, As the above scenario is not needed.