O'Reilly logo

Mastering Selenium WebDriver by Mark Collin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 3. Exceptions Are Actually Oracles

In this chapter, we will have a look at some of the more common exceptions that you may see when working with Selenium. While we look at them we will explore some of the possible causes of these exceptions. Finally we will provide some pointers, that will help you to fix your test code when you see them.

Are exceptions oracles?

So first of all, what is an oracle? An oracle was traditionally seen as a portal that the gods used to talk to people. As with anything, there are various definitions in use. To be clear about what an oracle is in the context of this book, we are going to use the following definition:

"A statement believed to be infallible and authoritative"

Like an oracle, an exception is an infallible ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required