public class FluentAdapter extends Object implements FluentControl
FluentDriver.ConfigurationProperties.DriverLifecycle, ConfigurationProperties.TriggerMode| Constructor and Description |
|---|
FluentAdapter()
Creates a new fluent adapter.
|
FluentAdapter(FluentControlContainer controlContainer)
Creates a new fluent adapter, using given control interface container.
|
| Modifier and Type | Method and Description |
|---|---|
Configuration |
getConfiguration()
Get the test adapter configuration.
|
protected FluentControlContainer |
getControlContainer()
Get the control interface container
|
org.openqa.selenium.WebDriver |
getDriver()
Get the actual underlying Selenium WebDriver.
|
void |
initFluent(org.openqa.selenium.WebDriver webDriver)
Load a
WebDriver into this adapter. |
org.openqa.selenium.WebDriver |
newWebDriver()
Creates a new
WebDriver instance. |
void |
releaseFluent()
Release the current
WebDriver from this adapter. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait$, $, $, el, el, el, find, find, findawaitkeyboard, mouseexecuteAsyncScript, executeScriptalertcanTakeScreenShot, takeHtmlDump, takeHtmlDump, takeScreenShot, takeScreenShoteventsgetCookie, getCookies, goTo, goTo, goToInNewTab, pageSource, switchTo, switchTo, switchTo, switchToDefault, url, windowcssinject, inject, newInstanceasComponentList, asComponentList, asComponentList, asComponentList, asComponentList, asComponentList, asFluentList, asFluentList, asFluentList, asFluentList, asFluentList, asFluentList, isComponentClass, isComponentListClass, newComponent, newComponentList, newComponentList, newComponentList, newComponentList, newComponentList, newComponentList, newFluent, newFluentList, newFluentList, newFluentList, newFluentList, newFluentList, newFluentListgetAwaitAtMost, getAwaitPollingEvery, getBaseUrl, getCapabilities, getConfigurationDefaults, getConfigurationFactory, getCustomProperty, getDeleteCookies, getDriverLifecycle, getEventsEnabled, getHtmlDumpMode, getHtmlDumpPath, getImplicitlyWait, getPageLoadTimeout, getRemoteUrl, getScreenshotMode, getScreenshotPath, getScriptTimeout, getWebDriversetAwaitAtMost, setAwaitPollingEvery, setBaseUrl, setCapabilities, setConfigurationFactory, setCustomProperty, setDeleteCookies, setDriverLifecycle, setEventsEnabled, setHtmlDumpMode, setHtmlDumpPath, setImplicitlyWait, setPageLoadTimeout, setRemoteUrl, setScreenshotMode, setScreenshotPath, setScriptTimeout, setWebDriverpublic FluentAdapter()
public FluentAdapter(FluentControlContainer controlContainer)
controlContainer - control interface containerpublic Configuration getConfiguration()
public final org.openqa.selenium.WebDriver getDriver()
SeleniumDriverControl
To customize the WebDriver, you should configure ConfigurationProperties.getWebDriver()
or override newWebDriver().
This method can't be override to customize the WebDriver.
getDriver in interface SeleniumDriverControlprotected FluentControlContainer getControlContainer()
public void initFluent(org.openqa.selenium.WebDriver webDriver)
WebDriver into this adapter.
This method should not be called by end user.
webDriver - webDriver to use.IllegalStateException - when trying to register a different webDriver that the current one.public void releaseFluent()
WebDriver from this adapter.
This method should not be called by end user.
public org.openqa.selenium.WebDriver newWebDriver()
WebDriver instance.
This method should not be called by end user, but may be overriden if required.
Before overriding this method, you should consider using WebDrivers registry and configuration
ConfigurationProperties.getWebDriver().
To retrieve the current managed WebDriver, call getDriver() instead.
getDriver()Copyright © 2016 FluentLenium. All Rights Reserved.