© Sujay Raghavendra 2021
S. RaghavendraPython Testing with Seleniumhttps://doi.org/10.1007/978-1-4842-6249-8_9

9. Exceptions

Sujay Raghavendra1  
Dharwad, Karnataka, India

The last chapter discussed assertions, which evaluate a specified condition in a test case. This chapter focuses on exceptions that occur in Python with Selenium. First, you need to know what Selenium exceptions are and their various types. Several aspects raise exceptions in a Selenium test case. Each exception is caused by a specific reason, which is explained in this chapter. Selenium provides many built-in exceptions that later lead to the termination of a test case. To avoid these unusual terminations, an exception should be handled so that the test case follows the normal ...

Get Python Testing with Selenium: Learn to Implement Different Testing Techniques Using the Selenium WebDriver now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.