GrumpyDriver

org.scalatestplus.play.BrowserFactory.GrumpyDriver
sealed abstract class GrumpyDriver extends WebDriver

A null-object implementation of the Selenium WebDriver interface that throws UnsupportedOperationException from all of its methods, used when either 1) a WebDriver field has not yet been initialized, 2) a requested Selenium WebDriver is unavailable on the host platform, or 3) a test that did not declare it needed a WebDriver in AllBrowserPerSuite or AllBrowserPerTest attempts to use one.

This is named GrumpyDriver because all it does is complain. No matter what you ask of it, it throws an UnsupportedOperationException back at you.

Attributes

Graph
Supertypes
trait WebDriver
trait SearchContext
class Object
trait Matchable
class Any
Known subtypes
object UninitializedDriver.type
object UnneededDriver.type

Members list

Value members

Abstract methods

protected def complain(): Nothing

Throws UnsupportedOperationException with an appropriate error message and, optionally, cause.

Throws UnsupportedOperationException with an appropriate error message and, optionally, cause.

Attributes

Concrete methods

final def close(): Unit

Throws UnsupportedOperationException.

Throws UnsupportedOperationException.

Attributes

final def findElement(by: By): WebElement

Throws UnsupportedOperationException.

Throws UnsupportedOperationException.

Attributes

final def findElements(by: By): List[WebElement]

Throws UnsupportedOperationException.

Throws UnsupportedOperationException.

Attributes

final def get(url: String): Unit

Throws UnsupportedOperationException.

Throws UnsupportedOperationException.

Attributes

final def getCurrentUrl(): String

Throws UnsupportedOperationException.

Throws UnsupportedOperationException.

Attributes

final def getPageSource(): String

Throws UnsupportedOperationException.

Throws UnsupportedOperationException.

Attributes

final def getTitle(): String

Throws UnsupportedOperationException.

Throws UnsupportedOperationException.

Attributes

final def getWindowHandle(): String

Throws UnsupportedOperationException.

Throws UnsupportedOperationException.

Attributes

final def getWindowHandles(): Set[String]

Throws UnsupportedOperationException.

Throws UnsupportedOperationException.

Attributes

final def manage(): Options

Throws UnsupportedOperationException.

Throws UnsupportedOperationException.

Attributes

final def quit(): Unit

Throws UnsupportedOperationException.

Throws UnsupportedOperationException.

Attributes

final def switchTo(): TargetLocator

Throws UnsupportedOperationException.

Throws UnsupportedOperationException.

Attributes