In this section we are going to look at using the
findElements call that is on the WebDriver object. This is how we can normally find elements using Selenium WebDriver.
driver.get("http://book.theautomatedtester.co.uk") List<WebElement> elements = driver.findElements(By.linkText("Chapter1")); Assert.assertEqual(1, elements.size());
We have used this similar to calls earlier in the chapter. This will find multiple elements on the page and return a list. This will not throw a
NoSuchElement exception if it cannot find the element.