Exception in selenium
1. NoSuchElementException: This exception is thrown when the WebDriver is
unable to locate an element on the web page.
2. StaleElementReferenceException: This exception is thrown when an element is
no longer attached to the DOM, usually as a result of a page refresh or
navigation.
3. TimeoutException: This exception is thrown when a command does not
complete within the expected time.
4. ElementNotVisibleException: This exception is thrown when an element is
present on the page, but not visible to the user.
5. ElementNotInteractableException: This exception is thrown when an element
is present on the page, but not interactable.
6. NoSuchWindowException: This exception is thrown when the WebDriver is
unable to locate a window or frame.
7. WebDriverException: This is a general exception that can be thrown for a
variety of reasons, such as network issues, driver errors, or unexpected
browser behavior.