Home »
MCQs »
Selenium MCQs
If the method fails to find the element which of the two methods throws you the exception?
38. If the method fails to find the element which of the two methods throws you the exception?
- Findelement method
- Findelements method
Answer: A) Findelement method
Explanation:
Findelement method will throw you the exception named as NoSuchElementException, whereas findelements method will not show any exception.