public class TestBrowser
extends org.fluentlenium.core.FluentAdapter
Constructor and Description |
---|
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).
|
Modifier and Type | Method and Description |
---|---|
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
|
<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
$, $, alert, await, clear, clear, clear, click, click, executeScript, fill, fill, fillSelect, find, find, findFirst, getBaseUrl, getCookie, getCookies, getDriver, goTo, goTo, initFluent, maximizeWindow, pageSource, submit, submit, switchTo, switchTo, switchToDefault, takeScreenShot, takeScreenShot, text, title, url, value, withDefaultPageWait, withDefaultSearchWait, withDefaultUrl
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.public org.openqa.selenium.support.ui.FluentWait<org.openqa.selenium.WebDriver> fluentWait()
FluentWait<WebDriver>
instance
using the underlying web driverpublic <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()