What are the different exceptions in Selenium WebDriver?
Exceptions are events that occur during the execution of a program and disrupt the normal flow of a program's instructions. Selenium has the following exceptions:
TimeoutException - It is thrown when a command performing an operation does not complete in the stipulated time.
NoSuchElementException - It is thrown when an element with specific attributes is not found on the web page.
ElementNotVisibleException - It is thrown when an element is present in Document Object Model (DOM) but is not visible. Ex: Hidden Elements defined in HTML using type=“hidden”.
SessionNotFoundException - The WebDriver is performing the action immediately after quitting the browser.