public class TestBrowser
extends org.fluentlenium.core.FluentAdapter
Constructor and Description |
---|
TestBrowser(java.lang.Class<? extends org.openqa.selenium.WebDriver> webDriver)
A test browser (Using Selenium WebDriver) with the FluentLenium API (https://github.com/Fluentlenium/FluentLenium).
|
TestBrowser(org.openqa.selenium.WebDriver webDriver)
A test browser (Using Selenium WebDriver) with the FluentLenium API (https://github.com/Fluentlenium/FluentLenium).
|
Modifier and Type | Method and Description |
---|---|
org.openqa.selenium.support.ui.FluentWait<org.openqa.selenium.WebDriver> |
fluentWait()
Creates a generic FluentWait
|
org.openqa.selenium.WebDriver.Options |
manage()
retrieves the underlying option interface that can be used
to set cookies, manage timeouts among other things
|
<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)
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)
|
<T> T |
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)
|
assertAt, createPage, getDefaultBaseUrl, getDefaultConfig, getDefaultDriver, initClass, initTest, quit
$, $, 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
public TestBrowser(java.lang.Class<? extends org.openqa.selenium.WebDriver> webDriver) throws java.lang.Exception
webDriver
- The WebDriver instance to use.java.lang.Exception
public TestBrowser(org.openqa.selenium.WebDriver webDriver)
webDriver
- The WebDriver instance to use.public org.openqa.selenium.support.ui.FluentWait<org.openqa.selenium.WebDriver> fluentWait()
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 FluentWaitf
- function to executepublic <T> T waitUntil(com.google.common.base.Function<org.openqa.selenium.WebDriver,T> f)
wait
- generic FluentWaitf
- function to executepublic org.openqa.selenium.WebDriver.Options manage()