Skip to content
CodeKruPro

One element versus many: what happens when nothing matches?

QuizEasyAsked in: Accenture, Capgemini, Infosys, TCS, Wipro

The locator matches nothing on the page and no implicit wait is set (an implicit wait is a setting that makes Selenium retry a lookup for a few seconds before it fails; see the Waits topic). What do you get from the single-element lookup (findElement in Java, find_element in Python) and from the multi-element lookup (findElements, find_elements)?

Choose one answer.

to answer and keep your progress. Reading is free for everyone.