Q. Which exception is thrown when an element is not found in Selenium?

A
ElementNotVisibleException
B
NoSuchElementException
C
TimeoutException
D
StaleElementReferenceException
Solution:

NoSuchElementException is thrown when Selenium cannot locate an element on the page.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!