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?

  1. Findelement method
  2. 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.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.