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, cleanUp, createPage, getDefaultBaseUrl, getDefaultConfig, getDefaultDriver, initClass, initTest
$, $, $, $, alert, await, cleanupDriver, clear, clear, clear, clear, click, click, click, constructPageWithParams, executeAsyncScript, executeScript, fill, fill, fill, fillSelect, fillSelect, find, find, find, find, findFirst, findFirst, getBaseUrl, getCookie, getCookies, getDriver, getSearch, goTo, goTo, initFluent, maximizeWindow, pageSource, quit, submit, submit, submit, switchTo, switchTo, switchToDefault, takeScreenShot, takeScreenShot, text, text, title, url, value, 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()