Throws UnsupportedOperationException
.
Throws UnsupportedOperationException
.
Throws UnsupportedOperationException
with an appropriate error message and, optionally, cause.
Throws UnsupportedOperationException
with an appropriate error message and, optionally, cause.
Throws UnsupportedOperationException
.
Throws UnsupportedOperationException
.
Throws UnsupportedOperationException
.
Throws UnsupportedOperationException
.
Throws UnsupportedOperationException
.
Throws UnsupportedOperationException
.
Throws UnsupportedOperationException
.
Throws UnsupportedOperationException
.
Throws UnsupportedOperationException
.
Throws UnsupportedOperationException
.
Throws UnsupportedOperationException
.
Throws UnsupportedOperationException
.
Throws UnsupportedOperationException
.
Throws UnsupportedOperationException
.
Throws UnsupportedOperationException
.
Throws UnsupportedOperationException
.
Throws UnsupportedOperationException
.
Throws UnsupportedOperationException
.
Throws UnsupportedOperationException
.
Throws UnsupportedOperationException
.
Throws UnsupportedOperationException
.
Throws UnsupportedOperationException
.
Throws UnsupportedOperationException
.
Throws UnsupportedOperationException
.
An implementation of
WebDriver
that throwsUnsupportedOperationException
from all of its methods, used when a test does not need a SeleniumWebDriver
at all.Traits OneBrowserPerSuite, OneBrowserPerTest, AllBrowsersPerTest, and MixedFixtures check if the requested
WebDriver
is available, and if not, installs this driver (to avoid initializing withnull
) and cancels the tests.This is an example of the "Null Object Pattern." We use this pattern to avoid initializing with
null
instead of making the driver type anOption[WebDriver]
for two reasons: 1) the type of the implicit needed by Selenium isWebDriver
, notOption[WebDriver]
, and 2) theUnsupportedOperationException
thrown by the methods of the Null Object we provide carries a user-friendly error message.