What is different-different exceptions in Selenium WebDriver ?
Exceptions in Selenium are similar to exceptions in other programming languages. The most common exceptions in Selenium are:
- TimeoutException: This exception is thrown when a command performing an operation does not complete in the stipulated time
- NoSuchElementException: This exception is thrown when an element with given attributes is not found on the web page
- ElementNotVisibleException: This exception is thrown when the element is present in DOM (Document Object Model), but not visible on the web page
- StaleElementException: This exception is thrown when the element is either deleted or no longer attached to the DOM