WebDriver: Differences between findElement and findElements
January 30, 2023 2023-01-30 12:18WebDriver: Differences between findElement and findElements
WebDriver: Differences between findElement and findElements
FindElement | FindElements | ||
---|---|---|---|
Return Type | WebElement | List(java. Util) list of webElements | |
if the object was not there | no such element found exception comes into picture | list will return 0 element , it don’t throw any exceptions here | |
how it will find | In the HTML page it will search for the object with the specified property. If there are multiple objects with the same property then it will perform action on the 1st object only | This method will find all the elements in the entire webpage with the specified locators | Sample |
Related Posts
APPIUM architecture overview
January 30, 2023
90 views
APPIUM Limitations
January 30, 2023
84 views
APPIUM: Introduction to mobile testing and overview on mobile devices
January 30, 2023
91 views
Jenkins: What is Jenkins and its installation steps
January 30, 2023
70 views
APPIUM: How to identify object properties- Part 1
January 30, 2023
73 views