Different types of Selenium WebDriver Common Exceptions
Selenium Testing | Selenium Webdriver Exceptions | Selenium UI Testing

Get Started

with $0/mo FREE Test Plan Builder or a 14-day FREE TRIAL of Test Manager

What is an Exception?

  1. Checked Exception: Checked exceptions are handled during compile time, and if they are not caught and handled during compile time, they cause a compilation problem.
  2. Unchecked Exception: A compiler does not need handling of unchecked exceptions. During compilation, the compiler ignores it.
  3. Error: When a scenario becomes fatal and the software is unable to recover

Example for Exception:

Example of an Exception in Java:

Statement1;
Statement2;
Statement3;  //Exception occurred at this 3rd line
Statement4;  //This line won't be executed
Statement5;  //This line won't be executed

Example for Handling an Exception in Java:

Different types of Exceptions in Selenium WebDriver

  1. NoSuchElementException
  2. ElementNotVisibleException
  3. NoSuchFrameException
  4. NoAlertPresentException
  5. NoSuchWindowException
  6. SessionNotFoundException
  7. StaleElementReferenceException
  8. InvalidSelectorException
  9. ElementNotSelectableException
  10. TimeOutException

In summary

Newest Articles

Quality Testing: When Should Regression Testing Be Performed?
Maintaining application integrity while implementing changes is a continuous challenge for development teams. Quality testing procedures must evolve alongside increasingly complex codebases, with regression testing serving as a critical safeguard against unexpected system failures. By identifying when and how to implement effective regression testing protocols, development teams can significantly enhance their software maintenance practices and… Continue reading Quality Testing: When Should Regression Testing Be Performed?
Essential Guide to Effective BDD Tests for Your Development Process
Software development teams need methodologies that enhance collaboration while ensuring quality. Behavior-Driven Development (BDD) has emerged as a powerful approach that bridges the gap between technical and non-technical team members through a shared language of expected behaviors. When implemented correctly, BDD transforms requirements into actionable test cases that serve as living documentation for your software.… Continue reading Essential Guide to Effective BDD Tests for Your Development Process
The Ultimate Test Plan Tools in Software Testing: A Practical Guide
Quality assurance remains a critical factor in delivering today’s reliable products. Having the right test plan tools at your disposal can dramatically improve testing efficiency, provide clearer visibility into quality metrics, and help teams collaborate more effectively. As organizations continue to adopt agile methodologies and shift-left testing approaches, the tools that support these processes must… Continue reading The Ultimate Test Plan Tools in Software Testing: A Practical Guide

© 2025 Bitmodern Inc. All Rights Reserved.