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



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

Answer / 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

More Selenium Interview Questions

where do u maintain all your test cases in manual not in selenium

1 Answers  


Explain what is framework and what are the frameworks available in rc?

1 Answers  


Explain what are the limitations of selenium ide?

1 Answers  


Tell me what you know about selenium?

1 Answers  


Explain how you can handle colors in web driver?

1 Answers  


what is the difference between absolute path and relative path?

1 Answers  


How can you insert a start point in selenium ide?

1 Answers  


What is robot api?

1 Answers  


What are the advantages and disadvantages of using selenium as testing tool?

1 Answers  


Is selenium capable of handling windows pop-ups?

1 Answers  


How do you handle frames

1 Answers  


How to connect a database in selenium?

1 Answers  


Categories