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

Ministry of Testing - ¨TestQuality named Tool of the Week
TestQuality Named “Tool of the Week” by Ministry of Testing!
We’re excited to share some big news with our community of QA professionals, software testers, and developers: TestQuality has been named "Tool of the Week" by the Ministry of Testing (MoT), one of the most respected communities in the software testing world! You can find the mention featured directly on the Ministry of Testing homepage… Continue reading TestQuality Named “Tool of the Week” by Ministry of Testing!
Top Gherkin BDD Tools for Modern Test Management in 2025
Software quality assurance has evolved significantly in recent years, with behavior-driven development (BDD) emerging as a powerful methodology for aligning technical teams with business objectives. At the center of this evolution sits Gherkin, a simple yet powerful specification language that bridges the communication gap between technical and non-technical stakeholders and simplifies the creation and maintenance… Continue reading Top Gherkin BDD Tools for Modern Test Management in 2025
Playwright Vs Jest | Visual regression testing. Flakiness and Test Management
Visual Regression Testing with Playwright Vs. Others
What is Playwright? Playwright is a Microsoft-created NodeJS package with capabilities that are quite similar to Puppeteer. Both libraries enable you to automate browser-based tasks. With Playwright, you can launch or connect to a Chrome, Edge, Safari, or Firefox browser and exchange instructions. The DevTools protocol (for Chrome browsers) and a bespoke protocol (for Firefox and… Continue reading Visual Regression Testing with Playwright Vs. Others

© 2025 Bitmodern Inc. All Rights Reserved.