Find Elements in Selenium

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

SELENIUM

Find Elements in Selenium


Selenium: Selenium With Java Basics

➤ Find Elements : findElements() method which can return


multiple elements matching with given locator,
findElements() returns List<WebElement>. 
➤ Things to Remember About Find Element:
➤ FindElements() provide the whole list of all the elements
matching the specified locator.
➤ If the element doesn’t exist or not available on the page then,
the return value will be an empty list.
➤ It will not throw 'NoSuchElementFoundException' in case
element is not present
Will see you in Next Lecture…

See you in next lecture …

You might also like