← 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?
- A.null
- B.It throws NoSuchElementException
- C.An empty list
- 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 →