🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Selenium Setup: all 10 questions

Quiz: Selenium Setup · Question 5 of 10

What does findElements return when nothing matches?

What does findElements return when nothing matches?

  1. A.null
  2. B.It throws NoSuchElementException
  3. C.An empty list
  4. D.The first element on the page
Answer & explanation

Correct answer: An empty list

Only findElement (singular) throws.

Can you get the rest right without peeking?

Take the timed Quiz: Selenium Setup quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →