|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.fluentlenium.core.Fluent
org.fluentlenium.core.FluentAdapter
play.test.TestBrowser
public class TestBrowser
A test browser (Using Selenium WebDriver) with the FluentLenium API (https://github.com/Fluentlenium/FluentLenium).
| Constructor Summary | |
|---|---|
TestBrowser(java.lang.Class<? extends org.openqa.selenium.WebDriver> webDriver,
java.lang.String baseUrl)
A test browser (Using Selenium WebDriver) with the FluentLenium API (https://github.com/Fluentlenium/FluentLenium). |
|
TestBrowser(org.openqa.selenium.WebDriver webDriver,
java.lang.String baseUrl)
A test browser (Using Selenium WebDriver) with the FluentLenium API (https://github.com/Fluentlenium/FluentLenium). |
|
| Method Summary | ||
|---|---|---|
org.openqa.selenium.support.ui.FluentWait<org.openqa.selenium.WebDriver> |
fluentWait()
Creates a generic FluentWait<WebDriver> instance
using the underlying web driver |
|
org.openqa.selenium.WebDriver.Options |
manage()
retrieves the underlying option interface that can be used to set cookies, manage timeouts among other things |
|
|
waitUntil(org.openqa.selenium.support.ui.FluentWait<org.openqa.selenium.WebDriver> wait,
com.google.common.base.Function<org.openqa.selenium.WebDriver,T> f)
Repeatedly applies this instance's input value to the given function until one of the following occurs: the function returns neither null nor false, the function throws an unignored exception, the timeout expires Useful in situations where FluentAdapter#await is too specific (for example to check against page source) |
|
|
waitUntil(com.google.common.base.Function<org.openqa.selenium.WebDriver,T> f)
Repeatedly applies this instance's input value to the given function until one of the following occurs: the function returns neither null nor false, the function throws an unignored exception, the default timeout expires useful in situations where FluentAdapter#await is too specific (for example to check against page source or title) |
|
| Methods inherited from class org.fluentlenium.core.FluentAdapter |
|---|
assertAt, createPage, getDefaultBaseUrl, getDefaultConfig, getDefaultDriver, initClass, initTest, quit |
| Methods inherited from class org.fluentlenium.core.Fluent |
|---|
$, $, await, clear, clear, clear, click, click, executeScript, fill, fill, find, find, findFirst, getBaseUrl, getCookie, getCookies, getDriver, goTo, goTo, initFluent, pageSource, submit, submit, takeScreenShot, takeScreenShot, text, title, url, value, withDefaultPageWait, withDefaultSearchWait, withDefaultUrl |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TestBrowser(java.lang.Class<? extends org.openqa.selenium.WebDriver> webDriver,
java.lang.String baseUrl)
throws java.lang.Exception
webDriver - The WebDriver instance to use.baseUrl - The base url to use for relative requests.
java.lang.Exception
public TestBrowser(org.openqa.selenium.WebDriver webDriver,
java.lang.String baseUrl)
webDriver - The WebDriver instance to use.baseUrl - The base url to use for relative requests.| Method Detail |
|---|
public org.openqa.selenium.support.ui.FluentWait<org.openqa.selenium.WebDriver> fluentWait()
FluentWait<WebDriver> instance
using the underlying web driver
public <T> T waitUntil(org.openqa.selenium.support.ui.FluentWait<org.openqa.selenium.WebDriver> wait,
com.google.common.base.Function<org.openqa.selenium.WebDriver,T> f)
wait - generic FluentWait<WebDriver> instancef - function to executepublic <T> T waitUntil(com.google.common.base.Function<org.openqa.selenium.WebDriver,T> f)
f - function to executepublic org.openqa.selenium.WebDriver.Options manage()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||