Finding elements in Selenium WebDriver is done by using the
findElements() methods provided by the
findElement() method returns an instance of a
WebElement that is found in the page DOM based on specified locators, also called search criteria. If it does not find an element using the specified search criteria, it will throw the
findElements() method returns a list of
WebElements matching the search criteria. If no elements are found, it returns an empty list.
Find methods take a locator or a query object as an instance of a
By class as an argument. Selenium WebDriver provides a
By class to support various locator ...