WithBrowser

play.api.test.WithBrowser
abstract class WithBrowser[WEBDRIVER <: WebDriver](val webDriver: WebDriver, val app: Application, var port: Int) extends AroundHelper, Scope

Used to run specs within the context of a running server, and using a web browser

Value parameters

app

The fake application

port

The port to run the server on

webDriver

The driver for the web browser to use

Attributes

Graph
Supertypes
class AroundHelper
trait Around
trait DelayedInit
trait Around
trait Context
trait Scope
trait Scope
class Object
trait Matchable
class Any
Show all

Members list

Value members

Constructors

def this(webDriver: Class[WEBDRIVER], app: Application, port: Int)

Concrete methods

override def wrap[T : AsResult](t: => T): Result

Attributes

Definition Classes

Inherited methods

def andThen(a: Around): Around

sequence the actions of 2 Around traits

sequence the actions of 2 Around traits

Attributes

Inherited from:
Around
def apply[T : AsResult](a: => T): Result

Attributes

Inherited from:
Around
override def around[T : AsResult](t: => T): Result

Attributes

Definition Classes
AroundHelper -> Around
Inherited from:
AroundHelper
def compose(a: Around): Around

compose the actions of 2 Around traits

compose the actions of 2 Around traits

Attributes

Inherited from:
Around
override def delayedInit(x: => Unit): Unit

use effectively to re-throw FailureExceptions if x failed

use effectively to re-throw FailureExceptions if x failed

Attributes

Definition Classes
Around -> DelayedInit
Inherited from:
Around
def running(): Unit

Attributes

Inherited from:
AroundHelper

Concrete fields

lazy val browser: TestBrowser
var port: Int
val webDriver: WebDriver

Implicits

Implicits

implicit def implicitApp: Application
implicit def implicitPort: Port