Selenium WebDriver - Explain what is the difference between find elements () and find element () ?
Selenium WebDriver Interview question and Answers
(Continued from previous question...)
Selenium WebDriver - Explain what is the difference between find elements () and find element () ?
find element ():
It finds the first element within the current page using the given “locating mechanism”. It returns a single WebElement
findElements () : Using the given “locating mechanism” find all the elements within the current page. It returns a list of web elements.
(Continued on next question...)
Other Interview Questions
|