case class UnavailableDriver(ex: Option[Throwable], errorMessage: String) extends GrumpyDriver with Product with Serializable
- Alphabetic
- By Inheritance
- UnavailableDriver
- Serializable
- Product
- Equals
- GrumpyDriver
- WebDriver
- SearchContext
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new UnavailableDriver(ex: Option[Throwable], errorMessage: String)
Value Members
- final def close(): Unit
Throws
UnsupportedOperationException
.Throws
UnsupportedOperationException
.- Definition Classes
- GrumpyDriver → WebDriver
- val errorMessage: String
- val ex: Option[Throwable]
- final def findElement(by: By): WebElement
Throws
UnsupportedOperationException
.Throws
UnsupportedOperationException
.- Definition Classes
- GrumpyDriver → WebDriver → SearchContext
- final def findElements(by: By): List[WebElement]
Throws
UnsupportedOperationException
.Throws
UnsupportedOperationException
.- Definition Classes
- GrumpyDriver → WebDriver → SearchContext
- final def get(url: String): Unit
Throws
UnsupportedOperationException
.Throws
UnsupportedOperationException
.- Definition Classes
- GrumpyDriver → WebDriver
- final def getCurrentUrl(): String
Throws
UnsupportedOperationException
.Throws
UnsupportedOperationException
.- Definition Classes
- GrumpyDriver → WebDriver
- final def getPageSource(): String
Throws
UnsupportedOperationException
.Throws
UnsupportedOperationException
.- Definition Classes
- GrumpyDriver → WebDriver
- final def getTitle(): String
Throws
UnsupportedOperationException
.Throws
UnsupportedOperationException
.- Definition Classes
- GrumpyDriver → WebDriver
- final def getWindowHandle(): String
Throws
UnsupportedOperationException
.Throws
UnsupportedOperationException
.- Definition Classes
- GrumpyDriver → WebDriver
- final def getWindowHandles(): [String]
Throws
UnsupportedOperationException
.Throws
UnsupportedOperationException
.- Definition Classes
- GrumpyDriver → WebDriver
- final def manage(): Options
Throws
UnsupportedOperationException
.Throws
UnsupportedOperationException
.- Definition Classes
- GrumpyDriver → WebDriver
- final def navigate(): Navigation
Throws
UnsupportedOperationException
.Throws
UnsupportedOperationException
.- Definition Classes
- GrumpyDriver → WebDriver
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def quit(): Unit
Throws
UnsupportedOperationException
.Throws
UnsupportedOperationException
.- Definition Classes
- GrumpyDriver → WebDriver
- final def switchTo(): TargetLocator
Throws
UnsupportedOperationException
.Throws
UnsupportedOperationException
.- Definition Classes
- GrumpyDriver → WebDriver
An implementation of
WebDriver
that provides an optional exception and an error message and throwsUnsupportedOperationException
from all of its other methods, used when a requested SeleniumWebDriver
is unavailable on the host platform.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) the Null Object we provide also carries an optional exception and user-friendly error message.