findelements example selenium
Example 1: findelements in selenium
List elementName = driver.findElements(By.LocatorStrategy("LocatorValue"));
Example 2: findelements in selenium
List listOfElements = driver.findElements(By.xpath("//div"));
List elementName = driver.findElements(By.LocatorStrategy("LocatorValue"));
List listOfElements = driver.findElements(By.xpath("//div"));