case class TestBrowser(webDriver: WebDriver, baseUrl: Option[String]) extends FluentAdapter with Product with Serializable
A test browser (Using Selenium WebDriver) with the FluentLenium API (https://github.com/Fluentlenium/FluentLenium).
- webDriver
The WebDriver instance to use.
- Source
- Selenium.scala
- Alphabetic
- By Inheritance
- TestBrowser
- Serializable
- Serializable
- Product
- Equals
- FluentAdapter
- FluentControl
- Configuration
- ConfigurationMutator
- ConfigurationProperties
- CapabilitiesControl
- ComponentInstantiator
- FluentInjectControl
- CssControl
- SeleniumDriverControl
- NavigationControl
- EventsControl
- SnapshotControl
- AlertControl
- JavascriptControl
- InputControl
- AwaitControl
- SearchControl
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
TestBrowser(webDriver: WebDriver, baseUrl: Option[String])
- webDriver
The WebDriver instance to use.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
$(arg0: By, arg1: <repeated...>[SearchFilter]): FluentList[FluentWebElement]
- Definition Classes
- FluentAdapter → SearchControl
- Annotations
- @transient()
-
def
$(arg0: <repeated...>[SearchFilter]): FluentList[FluentWebElement]
- Definition Classes
- FluentAdapter → SearchControl
- Annotations
- @transient()
-
def
$(arg0: String, arg1: <repeated...>[SearchFilter]): FluentList[FluentWebElement]
- Definition Classes
- FluentAdapter → SearchControl
- Annotations
- @transient()
-
def
$(arg0: List[WebElement]): FluentList[FluentWebElement]
- Definition Classes
- FluentAdapter → SearchControl
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
alert(): Alert
- Definition Classes
- FluentAdapter → AlertControl
-
def
asComponentList[L <: List[T], T](arg0: Class[L], arg1: Class[T], arg2: List[WebElement]): L
- Definition Classes
- FluentAdapter → ComponentInstantiator
-
def
asComponentList[L <: List[T], T](arg0: Class[L], arg1: Class[T], arg2: Iterable[WebElement]): L
- Definition Classes
- FluentAdapter → ComponentInstantiator
-
def
asComponentList[L <: List[T], T](arg0: Class[L], arg1: Class[T], arg2: <repeated...>[WebElement]): L
- Definition Classes
- FluentAdapter → ComponentInstantiator
- Annotations
- @transient()
-
def
asComponentList[T](arg0: Class[T], arg1: List[WebElement]): ComponentList[T]
- Definition Classes
- FluentAdapter → ComponentInstantiator
-
def
asComponentList[T](arg0: Class[T], arg1: Iterable[WebElement]): ComponentList[T]
- Definition Classes
- FluentAdapter → ComponentInstantiator
-
def
asComponentList[T](arg0: Class[T], arg1: <repeated...>[WebElement]): ComponentList[T]
- Definition Classes
- FluentAdapter → ComponentInstantiator
- Annotations
- @transient()
-
def
asFluentList[T <: FluentWebElement](arg0: Class[T], arg1: List[WebElement]): FluentList[T]
- Definition Classes
- FluentAdapter → ComponentInstantiator
-
def
asFluentList[T <: FluentWebElement](arg0: Class[T], arg1: Iterable[WebElement]): FluentList[T]
- Definition Classes
- FluentAdapter → ComponentInstantiator
-
def
asFluentList[T <: FluentWebElement](arg0: Class[T], arg1: <repeated...>[WebElement]): FluentList[T]
- Definition Classes
- FluentAdapter → ComponentInstantiator
- Annotations
- @transient()
-
def
asFluentList(arg0: List[WebElement]): FluentList[FluentWebElement]
- Definition Classes
- FluentAdapter → ComponentInstantiator
-
def
asFluentList(arg0: Iterable[WebElement]): FluentList[FluentWebElement]
- Definition Classes
- FluentAdapter → ComponentInstantiator
-
def
asFluentList(arg0: <repeated...>[WebElement]): FluentList[FluentWebElement]
- Definition Classes
- FluentAdapter → ComponentInstantiator
- Annotations
- @transient()
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
await(): FluentWait
- Definition Classes
- FluentAdapter → AwaitControl
- val baseUrl: Option[String]
-
def
canTakeScreenShot(): Boolean
- Definition Classes
- FluentAdapter → SnapshotControl
-
def
capabilities(): Capabilities
- Definition Classes
- FluentAdapter → CapabilitiesControl
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
css(): CssSupport
- Definition Classes
- FluentAdapter → CssControl
-
def
el(arg0: By, arg1: <repeated...>[SearchFilter]): FluentWebElement
- Definition Classes
- FluentAdapter → SearchControl
- Annotations
- @transient()
-
def
el(arg0: <repeated...>[SearchFilter]): FluentWebElement
- Definition Classes
- FluentAdapter → SearchControl
- Annotations
- @transient()
-
def
el(arg0: String, arg1: <repeated...>[SearchFilter]): FluentWebElement
- Definition Classes
- FluentAdapter → SearchControl
- Annotations
- @transient()
-
def
el(arg0: WebElement): FluentWebElement
- Definition Classes
- FluentAdapter → SearchControl
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
events(): EventsRegistry
- Definition Classes
- FluentAdapter → EventsControl
-
def
executeAsyncScript(arg0: String, arg1: <repeated...>[AnyRef]): FluentJavascript
- Definition Classes
- FluentAdapter → JavascriptControl
- Annotations
- @transient()
-
def
executeScript(arg0: String, arg1: <repeated...>[AnyRef]): FluentJavascript
- Definition Classes
- FluentAdapter → JavascriptControl
- Annotations
- @transient()
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
find(arg0: By, arg1: <repeated...>[SearchFilter]): FluentList[FluentWebElement]
- Definition Classes
- FluentAdapter → SearchControl
- Annotations
- @transient()
-
def
find(arg0: <repeated...>[SearchFilter]): FluentList[FluentWebElement]
- Definition Classes
- FluentAdapter → SearchControl
- Annotations
- @transient()
-
def
find(arg0: String, arg1: <repeated...>[SearchFilter]): FluentList[FluentWebElement]
- Definition Classes
- FluentAdapter → SearchControl
- Annotations
- @transient()
-
def
find(arg0: List[WebElement]): FluentList[FluentWebElement]
- Definition Classes
- FluentAdapter → SearchControl
-
def
getAwaitAtMost(): Long
- Definition Classes
- FluentAdapter → ConfigurationProperties
-
def
getAwaitPollingEvery(): Long
- Definition Classes
- FluentAdapter → ConfigurationProperties
-
def
getBaseUrl(): String
- Definition Classes
- FluentAdapter → ConfigurationProperties
-
def
getBrowserTimeout(): Long
- Definition Classes
- FluentAdapter → ConfigurationProperties
-
def
getBrowserTimeoutRetries(): Integer
- Definition Classes
- FluentAdapter → ConfigurationProperties
-
def
getCapabilities(): Capabilities
- Definition Classes
- FluentAdapter → ConfigurationProperties
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getConfiguration(): org.fluentlenium.configuration.Configuration
- Definition Classes
- FluentAdapter
-
def
getConfigurationDefaults(): Class[_ <: ConfigurationProperties]
- Definition Classes
- FluentAdapter → ConfigurationProperties
-
def
getConfigurationFactory(): Class[_ <: ConfigurationFactory]
- Definition Classes
- FluentAdapter → ConfigurationProperties
-
def
getControlContainer(): FluentControlContainer
- Attributes
- protected[adapter]
- Definition Classes
- FluentAdapter
-
def
getCookie(arg0: String): Cookie
- Definition Classes
- FluentAdapter → NavigationControl
-
def
getCookies(): Set[Cookie]
- Definition Classes
- FluentAdapter → NavigationControl
-
def
getCustomProperty(arg0: String): String
- Definition Classes
- FluentAdapter → ConfigurationProperties
-
def
getDeleteCookies(): Boolean
- Definition Classes
- FluentAdapter → ConfigurationProperties
-
final
def
getDriver(): WebDriver
- Definition Classes
- FluentAdapter → SeleniumDriverControl
-
def
getDriverLifecycle(): DriverLifecycle
- Definition Classes
- FluentAdapter → ConfigurationProperties
-
def
getEventsEnabled(): Boolean
- Definition Classes
- FluentAdapter → ConfigurationProperties
-
def
getHtmlDumpMode(): TriggerMode
- Definition Classes
- FluentAdapter → ConfigurationProperties
-
def
getHtmlDumpPath(): String
- Definition Classes
- FluentAdapter → ConfigurationProperties
-
def
getImplicitlyWait(): Long
- Definition Classes
- FluentAdapter → ConfigurationProperties
-
def
getPageLoadTimeout(): Long
- Definition Classes
- FluentAdapter → ConfigurationProperties
-
def
getRemoteUrl(): String
- Definition Classes
- FluentAdapter → ConfigurationProperties
-
def
getScreenshotMode(): TriggerMode
- Definition Classes
- FluentAdapter → ConfigurationProperties
-
def
getScreenshotPath(): String
- Definition Classes
- FluentAdapter → ConfigurationProperties
-
def
getScriptTimeout(): Long
- Definition Classes
- FluentAdapter → ConfigurationProperties
-
def
getWebDriver(): String
- Definition Classes
- FluentAdapter → ConfigurationProperties
-
def
goTo(arg0: String): Unit
- Definition Classes
- FluentAdapter → NavigationControl
-
def
goTo[P <: FluentPage](arg0: P): P
- Definition Classes
- FluentAdapter → NavigationControl
-
def
goToInNewTab(arg0: String): Unit
- Definition Classes
- FluentAdapter → NavigationControl
-
def
initFluent(arg0: WebDriver): Unit
- Definition Classes
- FluentAdapter
-
def
inject(arg0: Any): ContainerContext
- Definition Classes
- FluentAdapter → FluentInjectControl
-
def
injectComponent(arg0: Any, arg1: Any, arg2: SearchContext): ContainerContext
- Definition Classes
- FluentAdapter → FluentInjectControl
-
def
isComponentClass(arg0: Class[_]): Boolean
- Definition Classes
- FluentAdapter → ComponentInstantiator
-
def
isComponentListClass(arg0: Class[_ <: List[_]]): Boolean
- Definition Classes
- FluentAdapter → ComponentInstantiator
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
keyboard(): KeyboardActions
- Definition Classes
- FluentAdapter → InputControl
-
def
manage: Options
retrieves the underlying option interface that can be used to set cookies, manage timeouts among other things
-
def
mouse(): MouseActions
- Definition Classes
- FluentAdapter → InputControl
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
newComponent[T](arg0: Class[T], arg1: WebElement): T
- Definition Classes
- FluentAdapter → ComponentInstantiator
-
def
newComponentList[L <: List[T], T](arg0: Class[L], arg1: Class[T], arg2: List[T]): L
- Definition Classes
- FluentAdapter → ComponentInstantiator
-
def
newComponentList[L <: List[T], T](arg0: Class[L], arg1: Class[T], arg2: <repeated...>[T]): L
- Definition Classes
- FluentAdapter → ComponentInstantiator
- Annotations
- @transient()
-
def
newComponentList[L <: List[T], T](arg0: Class[L], arg1: Class[T]): L
- Definition Classes
- FluentAdapter → ComponentInstantiator
-
def
newComponentList[T](arg0: Class[T], arg1: List[T]): ComponentList[T]
- Definition Classes
- FluentAdapter → ComponentInstantiator
-
def
newComponentList[T](arg0: Class[T], arg1: <repeated...>[T]): ComponentList[T]
- Definition Classes
- FluentAdapter → ComponentInstantiator
- Annotations
- @transient()
-
def
newComponentList[T](arg0: Class[T]): ComponentList[T]
- Definition Classes
- FluentAdapter → ComponentInstantiator
-
def
newFluent(arg0: WebElement): FluentWebElement
- Definition Classes
- FluentAdapter → ComponentInstantiator
-
def
newFluentList[T <: FluentWebElement](arg0: Class[T], arg1: List[T]): FluentList[T]
- Definition Classes
- FluentAdapter → ComponentInstantiator
-
def
newFluentList[T <: FluentWebElement](arg0: Class[T], arg1: <repeated...>[T]): FluentList[T]
- Definition Classes
- FluentAdapter → ComponentInstantiator
- Annotations
- @transient()
-
def
newFluentList[T <: FluentWebElement](arg0: Class[T]): FluentList[T]
- Definition Classes
- FluentAdapter → ComponentInstantiator
-
def
newFluentList(arg0: List[FluentWebElement]): FluentList[FluentWebElement]
- Definition Classes
- FluentAdapter → ComponentInstantiator
-
def
newFluentList(arg0: <repeated...>[FluentWebElement]): FluentList[FluentWebElement]
- Definition Classes
- FluentAdapter → ComponentInstantiator
- Annotations
- @transient()
-
def
newFluentList(): FluentList[FluentWebElement]
- Definition Classes
- FluentAdapter → ComponentInstantiator
-
def
newInstance[T](arg0: Class[T]): T
- Definition Classes
- FluentAdapter → FluentInjectControl
-
def
newWebDriver(): WebDriver
- Definition Classes
- FluentAdapter
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
pageSource(): String
- Definition Classes
- FluentAdapter → NavigationControl
- def quit(): Unit
-
def
releaseFluent(): Unit
- Definition Classes
- FluentAdapter
-
def
setAwaitAtMost(arg0: Long): Unit
- Definition Classes
- FluentAdapter → ConfigurationMutator
-
def
setAwaitPollingEvery(arg0: Long): Unit
- Definition Classes
- FluentAdapter → ConfigurationMutator
-
def
setBaseUrl(arg0: String): Unit
- Definition Classes
- FluentAdapter → ConfigurationMutator
-
def
setBrowserTimeout(arg0: Long): Unit
- Definition Classes
- FluentAdapter → ConfigurationMutator
-
def
setBrowserTimeoutRetries(arg0: Integer): Unit
- Definition Classes
- FluentAdapter → ConfigurationMutator
-
def
setCapabilities(arg0: Capabilities): Unit
- Definition Classes
- FluentAdapter → ConfigurationMutator
-
def
setConfigurationFactory(arg0: Class[_ <: ConfigurationFactory]): Unit
- Definition Classes
- FluentAdapter → ConfigurationMutator
-
def
setCustomProperty(arg0: String, arg1: String): Unit
- Definition Classes
- FluentAdapter → ConfigurationMutator
-
def
setDeleteCookies(arg0: Boolean): Unit
- Definition Classes
- FluentAdapter → ConfigurationMutator
-
def
setDriverLifecycle(arg0: DriverLifecycle): Unit
- Definition Classes
- FluentAdapter → ConfigurationMutator
-
def
setEventsEnabled(arg0: Boolean): Unit
- Definition Classes
- FluentAdapter → ConfigurationMutator
-
def
setHtmlDumpMode(arg0: TriggerMode): Unit
- Definition Classes
- FluentAdapter → ConfigurationMutator
-
def
setHtmlDumpPath(arg0: String): Unit
- Definition Classes
- FluentAdapter → ConfigurationMutator
-
def
setImplicitlyWait(arg0: Long): Unit
- Definition Classes
- FluentAdapter → ConfigurationMutator
-
def
setPageLoadTimeout(arg0: Long): Unit
- Definition Classes
- FluentAdapter → ConfigurationMutator
-
def
setRemoteUrl(arg0: String): Unit
- Definition Classes
- FluentAdapter → ConfigurationMutator
-
def
setScreenshotMode(arg0: TriggerMode): Unit
- Definition Classes
- FluentAdapter → ConfigurationMutator
-
def
setScreenshotPath(arg0: String): Unit
- Definition Classes
- FluentAdapter → ConfigurationMutator
-
def
setScriptTimeout(arg0: Long): Unit
- Definition Classes
- FluentAdapter → ConfigurationMutator
-
def
setWebDriver(arg0: String): Unit
- Definition Classes
- FluentAdapter → ConfigurationMutator
-
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
submit("#login", fields = "email" -> email, "password" -> password )
Example: -
def
switchTo(): Unit
- Definition Classes
- FluentAdapter → NavigationControl
-
def
switchTo(arg0: FluentWebElement): Unit
- Definition Classes
- FluentAdapter → NavigationControl
-
def
switchTo(arg0: FluentList[_ <: FluentWebElement]): Unit
- Definition Classes
- FluentAdapter → NavigationControl
-
def
switchToDefault(): Unit
- Definition Classes
- FluentAdapter → NavigationControl
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
takeHtmlDump(arg0: String): Unit
- Definition Classes
- FluentAdapter → SnapshotControl
-
def
takeHtmlDump(): Unit
- Definition Classes
- FluentAdapter → SnapshotControl
-
def
takeScreenshot(arg0: String): Unit
- Definition Classes
- FluentAdapter → SnapshotControl
-
def
takeScreenshot(): Unit
- Definition Classes
- FluentAdapter → SnapshotControl
-
def
url(): String
- Definition Classes
- FluentAdapter → NavigationControl
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
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
- block
code to be executed
-
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
- timeout
duration of how long should wait
- block
code to be executed
-
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
- timeout
the timeout amount
- timeUnit
timeout unit
- block
code to be executed
- val webDriver: WebDriver
-
def
window(): WindowAction
- Definition Classes
- FluentAdapter → NavigationControl