adspace


What is the difference between find elements () and find element ()?

Answer Posted / Amar Deep Nayak

`findElements()` returns a list of all elements that match the given criteria, while `findElement()` returns a single WebElement that matches the first occurrence of the given criteria. In case no elements are found by `findElement()`, an exception will be thrown.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you fetch an attribute from an element? How to retrieve typed text from a textbox?

1197


what will be the first salary and what will be the hike in the salary?

929


What’s selenese?

920


Do you know how to locate a link using its text in selenium?

985


Have you created any framework?

1038