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