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

Test Plan Software Development | Quality Assurance | TestQuality
Effective Test Planning in Software Development
Imagine working on a cutting-edge software project, your team is excited, the deadlines are looming, and suddenly, a critical flaw… Continue reading Effective Test Planning in Software Development
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… Continue reading Visual Regression Testing with Playwright Vs. Others
Pull Request Testing | QA Complete Guide QA Processes Review 1 TestQuality
An Overview of Pull Request Processes in Testing
One method that developers use to submit code modifications for evaluation is known as pull requests (PRs). We discussed the advantages… Continue reading An Overview of Pull Request Processes in Testing

© 2025 Bitmodern Inc. All Rights Reserved.