TestBrowser

play.api.test.TestBrowser
See theTestBrowser companion object
case class TestBrowser(webDriver: WebDriver, baseUrl: Option[String]) extends FluentAdapter

A test browser (Using Selenium WebDriver) with the FluentLenium API (https://github.com/Fluentlenium/FluentLenium).

Value parameters

webDriver

The WebDriver instance to use.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class FluentAdapter
trait IFluentAdapter
class FluentControlImpl
trait FluentControl
trait ChromiumControl
trait Configuration
trait ConfigurationMutator
trait ConfigurationProperties
trait PerformanceTimingControl
trait CapabilitiesControl
trait ComponentInstantiator
trait FluentInjectControl
trait CssControl
trait SeleniumDriverControl
trait NavigationControl
trait EventsControl
trait SnapshotControl
trait AlertControl
trait JavascriptControl
trait InputControl
trait AwaitControl
trait SearchControl[FluentWebElement]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def manage: Options

retrieves the underlying option interface that can be used to set cookies, manage timeouts among other things

retrieves the underlying option interface that can be used to set cookies, manage timeouts among other things

Attributes

def quit(): Unit
def submit(selector: String, fields: (String, String)*): FluentList[FluentWebElement]

Submits a form with the given field values

Submits a form with the given field values

Attributes

Example
 submit("#login", fields =
   "email" -> email,
   "password" -> password
 )
def waitUntil[T](timeout: Int, timeUnit: TimeUnit)(block: => T): T

Repeatedly applies this instance's input value to the given block until one of the following occurs: the function returns neither null nor false, the function throws an unignored exception, the timeout expires

Repeatedly applies this instance's input value to the given block until one of the following occurs: the function returns neither null nor false, the function throws an unignored exception, the timeout expires

Value parameters

block

code to be executed

timeUnit

timeout unit

timeout

the timeout amount

Attributes

def waitUntil[T](timeout: Duration)(block: => T): T

Repeatedly applies this instance's input value to the given block until one of the following occurs: the function returns neither null nor false, the function throws an unignored exception, the timeout expires

Repeatedly applies this instance's input value to the given block until one of the following occurs: the function returns neither null nor false, the function throws an unignored exception, the timeout expires

Value parameters

block

code to be executed

timeout

duration of how long should wait

Attributes

def waitUntil[T](block: => T): T

Repeatedly applies this instance's input value to the given block until one of the following occurs: the function returns neither null nor false, the function throws an unignored exception, the default timeout expires

Repeatedly applies this instance's input value to the given block until one of the following occurs: the function returns neither null nor false, the function throws an unignored exception, the default timeout expires

Value parameters

block

code to be executed

Attributes

Inherited methods

def $(x$0: AppiumBy, x$1: SearchFilter*): FluentList[FluentWebElement]

Attributes

Inherited from:
SearchControl
def $(x$0: By, x$1: SearchFilter*): FluentList[FluentWebElement]

Attributes

Inherited from:
SearchControl
def $(x$0: SearchFilter*): FluentList[FluentWebElement]

Attributes

Inherited from:
SearchControl
def $(x$0: String, x$1: SearchFilter*): FluentList[FluentWebElement]

Attributes

Inherited from:
SearchControl
def $(x$0: List[WebElement]): FluentList[FluentWebElement]

Attributes

Inherited from:
SearchControl
def alert(): Alert

Attributes

Inherited from:
FluentControl
def asComponentList[L <: List[T], T <: <FromJavaObject>](x$0: Class[L], x$1: Class[T], x$2: List[WebElement]): L

Attributes

Inherited from:
FluentControl
def asComponentList[T <: <FromJavaObject>](x$0: Class[T], x$1: List[WebElement]): ComponentList[T]

Attributes

Inherited from:
FluentControl
def asComponentList[L <: List[T], T <: <FromJavaObject>](x$0: Class[L], x$1: Class[T], x$2: WebElement*): L

Attributes

Inherited from:
FluentControl
def asComponentList[T <: <FromJavaObject>](x$0: Class[T], x$1: Iterable[WebElement]): ComponentList[T]

Attributes

Inherited from:
FluentControl
def asComponentList[T <: <FromJavaObject>](x$0: Class[T], x$1: WebElement*): ComponentList[T]

Attributes

Inherited from:
FluentControl
def asComponentList[L <: List[T], T <: <FromJavaObject>](x$0: Class[L], x$1: Class[T], x$2: Iterable[WebElement]): L

Attributes

Inherited from:
FluentControl
def asFluentList(x$0: List[WebElement]): FluentList[FluentWebElement]

Attributes

Inherited from:
FluentControl
def asFluentList(x$0: Iterable[WebElement]): FluentList[FluentWebElement]

Attributes

Inherited from:
FluentControl
def asFluentList[T <: FluentWebElement](x$0: Class[T], x$1: WebElement*): FluentList[T]

Attributes

Inherited from:
FluentControl
def asFluentList[T <: FluentWebElement](x$0: Class[T], x$1: List[WebElement]): FluentList[T]

Attributes

Inherited from:
FluentControl
def asFluentList[T <: FluentWebElement](x$0: Class[T], x$1: Iterable[WebElement]): FluentList[T]

Attributes

Inherited from:
FluentControl
def asFluentList(x$0: WebElement*): FluentList[FluentWebElement]

Attributes

Inherited from:
FluentControl
def await(): FluentWait

Attributes

Inherited from:
FluentControl

Attributes

Inherited from:
FluentControl
def capabilities(): Capabilities

Attributes

Inherited from:
FluentControl
def css(): CssSupport

Attributes

Inherited from:
FluentControl
def el(x$0: WebElement): FluentWebElement

Attributes

Inherited from:
FluentControl
def el(x$0: By, x$1: SearchFilter*): FluentWebElement

Attributes

Inherited from:
SearchControl
def el(x$0: AppiumBy, x$1: SearchFilter*): FluentWebElement

Attributes

Inherited from:
SearchControl
def el(x$0: SearchFilter*): FluentWebElement

Attributes

Inherited from:
SearchControl
def el(x$0: String, x$1: SearchFilter*): FluentWebElement

Attributes

Inherited from:
SearchControl
def events(): EventsRegistry

Attributes

Inherited from:
FluentControl
def executeAsyncScript(x$0: String, x$1: <FromJavaObject>*): FluentJavascript

Attributes

Inherited from:
FluentControl
def executeScript(x$0: String, x$1: <FromJavaObject>*): FluentJavascript

Attributes

Inherited from:
FluentControl
def find(x$0: SearchFilter*): FluentList[FluentWebElement]

Attributes

Inherited from:
FluentControl
def find(x$0: String, x$1: SearchFilter*): FluentList[FluentWebElement]

Attributes

Inherited from:
FluentControl
def find(x$0: List[WebElement]): FluentList[FluentWebElement]

Attributes

Inherited from:
FluentControl
def find(x$0: By, x$1: SearchFilter*): FluentList[FluentWebElement]

Attributes

Inherited from:
FluentControl
def getAppiumDriver(): AppiumDriver

Attributes

Inherited from:
FluentControl
def getAwaitAtMost(): Long

Attributes

Inherited from:
FluentControl
def getAwaitPollingEvery(): Long

Attributes

Inherited from:
FluentControl
def getBaseUrl(): String

Attributes

Inherited from:
FluentControl
def getBrowserTimeout(): Long

Attributes

Inherited from:
FluentControl
def getBrowserTimeoutRetries(): Integer

Attributes

Inherited from:
FluentControl
def getCapabilities(): Capabilities

Attributes

Inherited from:
FluentControl
def getChromiumApi(): ChromiumApi

Attributes

Inherited from:
FluentControl
def getConfiguration(): Configuration

Attributes

Inherited from:
FluentControlImpl
def getConfigurationDefaults(): Class[_ <: ConfigurationProperties]

Attributes

Inherited from:
FluentControl
def getConfigurationFactory(): Class[_ <: ConfigurationFactory]

Attributes

Inherited from:
FluentControl
def getControlContainer(): FluentControlContainer

Attributes

Inherited from:
FluentControlImpl
def getCookie(x$0: String): Cookie

Attributes

Inherited from:
FluentControl
def getCookies(): Set[Cookie]

Attributes

Inherited from:
FluentControl
def getCustomProperty(x$0: String): String

Attributes

Inherited from:
FluentControl
def getDeleteCookies(): Boolean

Attributes

Inherited from:
FluentControl
final def getDriver(): WebDriver

Attributes

Inherited from:
FluentAdapter
def getDriverLifecycle(): DriverLifecycle

Attributes

Inherited from:
FluentControl
def getEventsEnabled(): Boolean

Attributes

Inherited from:
FluentControl
def getFluentControl(): ContainerFluentControl

Attributes

Inherited from:
FluentAdapter
def getHtmlDumpMode(): TriggerMode

Attributes

Inherited from:
FluentControl
def getHtmlDumpPath(): String

Attributes

Inherited from:
FluentControl
def getImplicitlyWait(): Long

Attributes

Inherited from:
FluentControl
def getPageLoadTimeout(): Long

Attributes

Inherited from:
FluentControl
def getRemoteUrl(): String

Attributes

Inherited from:
FluentControl
def getScreenshotMode(): TriggerMode

Attributes

Inherited from:
FluentControl
def getScreenshotPath(): String

Attributes

Inherited from:
FluentControl
def getScriptTimeout(): Long

Attributes

Inherited from:
FluentControl
def getWebDriver(): String

Attributes

Inherited from:
FluentControl
def goTo(x$0: String): Unit

Attributes

Inherited from:
FluentControl
def goTo[P <: FluentPage](x$0: P): P

Attributes

Inherited from:
FluentControl
def goToInNewTab(x$0: String): Unit

Attributes

Inherited from:
FluentControl
def initFluent(x$0: WebDriver): FluentControl

Attributes

Inherited from:
IFluentAdapter
def initFluent(x$0: WebDriver, x$1: <FromJavaObject>): FluentControl

Attributes

Inherited from:
IFluentAdapter
def inject(x$0: <FromJavaObject>): ContainerContext

Attributes

Inherited from:
FluentControl
def injectComponent(x$0: <FromJavaObject>, x$1: <FromJavaObject>, x$2: SearchContext): ContainerContext

Attributes

Inherited from:
FluentControl
def isComponentClass(x$0: Class[_ <: <FromJavaObject>]): Boolean

Attributes

Inherited from:
FluentControl
def isComponentListClass(x$0: Class[_ <: List[_ <: <FromJavaObject>]]): Boolean

Attributes

Inherited from:
FluentControl

Attributes

Inherited from:
IFluentAdapter
def keyboard(): KeyboardActions

Attributes

Inherited from:
FluentControl
def mouse(): MouseActions

Attributes

Inherited from:
FluentControl
def newComponent[T <: <FromJavaObject>](x$0: Class[T], x$1: WebElement): T

Attributes

Inherited from:
FluentControl
def newComponentList[L <: List[T], T <: <FromJavaObject>](x$0: Class[L], x$1: Class[T], x$2: List[T]): L

Attributes

Inherited from:
FluentControl
def newComponentList[T <: <FromJavaObject>](x$0: Class[T], x$1: T*): ComponentList[T]

Attributes

Inherited from:
FluentControl
def newComponentList[T <: <FromJavaObject>](x$0: Class[T]): ComponentList[T]

Attributes

Inherited from:
FluentControl
def newComponentList[T <: <FromJavaObject>](x$0: Class[T], x$1: List[T]): ComponentList[T]

Attributes

Inherited from:
FluentControl
def newComponentList[L <: List[T], T <: <FromJavaObject>](x$0: Class[L], x$1: Class[T], x$2: T*): L

Attributes

Inherited from:
FluentControl
def newComponentList[L <: List[T], T <: <FromJavaObject>](x$0: Class[L], x$1: Class[T]): L

Attributes

Inherited from:
FluentControl
def newFluent(x$0: WebElement): FluentWebElement

Attributes

Inherited from:
FluentControl
def newFluentList[T <: FluentWebElement](x$0: Class[T], x$1: T*): FluentList[T]

Attributes

Inherited from:
FluentControl
def newFluentList(x$0: List[FluentWebElement]): FluentList[FluentWebElement]

Attributes

Inherited from:
FluentControl
def newFluentList(x$0: FluentWebElement*): FluentList[FluentWebElement]

Attributes

Inherited from:
FluentControl
def newFluentList(): FluentList[FluentWebElement]

Attributes

Inherited from:
FluentControl
def newFluentList[T <: FluentWebElement](x$0: Class[T]): FluentList[T]

Attributes

Inherited from:
FluentControl
def newFluentList[T <: FluentWebElement](x$0: Class[T], x$1: List[T]): FluentList[T]

Attributes

Inherited from:
FluentControl
def newInstance[T <: <FromJavaObject>](x$0: Class[T]): T

Attributes

Inherited from:
FluentControl
def newWebDriver(): WebDriver

Attributes

Inherited from:
IFluentAdapter
def pageSource(): String

Attributes

Inherited from:
FluentControl
def performanceTiming(): PerformanceTiming

Attributes

Inherited from:
FluentControl

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Attributes

Inherited from:
IFluentAdapter
def setAwaitAtMost(x$0: Long): Unit

Attributes

Inherited from:
FluentControl
def setAwaitPollingEvery(x$0: Long): Unit

Attributes

Inherited from:
FluentControl
def setBaseUrl(x$0: String): Unit

Attributes

Inherited from:
FluentControl
def setBrowserTimeout(x$0: Long): Unit

Attributes

Inherited from:
FluentControl
def setBrowserTimeoutRetries(x$0: Integer): Unit

Attributes

Inherited from:
FluentControl
def setCapabilities(x$0: Capabilities): Unit

Attributes

Inherited from:
FluentControl
def setConfigurationFactory(x$0: Class[_ <: ConfigurationFactory]): Unit

Attributes

Inherited from:
FluentControl
def setCustomProperty(x$0: String, x$1: String): Unit

Attributes

Inherited from:
FluentControl
def setDeleteCookies(x$0: Boolean): Unit

Attributes

Inherited from:
FluentControl
def setDriverLifecycle(x$0: DriverLifecycle): Unit

Attributes

Inherited from:
FluentControl
def setEventsEnabled(x$0: Boolean): Unit

Attributes

Inherited from:
FluentControl
def setFluentControl(x$0: ContainerFluentControl): FluentControl

Attributes

Inherited from:
IFluentAdapter
def setHtmlDumpMode(x$0: TriggerMode): Unit

Attributes

Inherited from:
FluentControl
def setHtmlDumpPath(x$0: String): Unit

Attributes

Inherited from:
FluentControl
def setImplicitlyWait(x$0: Long): Unit

Attributes

Inherited from:
FluentControl
def setPageLoadTimeout(x$0: Long): Unit

Attributes

Inherited from:
FluentControl
def setRemoteUrl(x$0: String): Unit

Attributes

Inherited from:
FluentControl
def setScreenshotMode(x$0: TriggerMode): Unit

Attributes

Inherited from:
FluentControl
def setScreenshotPath(x$0: String): Unit

Attributes

Inherited from:
FluentControl
def setScriptTimeout(x$0: Long): Unit

Attributes

Inherited from:
FluentControl
def setWebDriver(x$0: String): Unit

Attributes

Inherited from:
FluentControl
def switchTo(x$0: FluentWebElement): Unit

Attributes

Inherited from:
FluentControl
def switchTo(x$0: FluentList[_ <: FluentWebElement]): Unit

Attributes

Inherited from:
FluentControl
def switchTo(): Unit

Attributes

Inherited from:
FluentControl

Attributes

Inherited from:
FluentControl
def takeHtmlDump(x$0: String): Unit

Attributes

Inherited from:
FluentControl

Attributes

Inherited from:
FluentControl
def takeScreenshot(): File

Attributes

Inherited from:
FluentControl
def takeScreenshot(x$0: String): File

Attributes

Inherited from:
FluentControl
def url(): String

Attributes

Inherited from:
FluentControl
def window(): WindowAction

Attributes

Inherited from:
FluentControl