Package io.fluentlenium.adapter
Class FluentAdapter
java.lang.Object
io.fluentlenium.core.FluentControlImpl
io.fluentlenium.adapter.FluentAdapter
- All Implemented Interfaces:
IFluentAdapter
,Configuration
,ConfigurationMutator
,ConfigurationProperties
,InputControl
,AlertControl
,CapabilitiesControl
,ComponentInstantiator
,CssControl
,EventsControl
,FluentControl
,FluentInjectControl
,NavigationControl
,PerformanceTimingControl
,JavascriptControl
,SearchControl<FluentWebElement>
,SeleniumDriverControl
,SnapshotControl
,AwaitControl
,ChromiumControl
- Direct Known Subclasses:
FluentStandalone
,FluentTestRunnerAdapter
Generic adapter to
FluentDriver
.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.fluentlenium.configuration.ConfigurationProperties
ConfigurationProperties.DriverLifecycle, ConfigurationProperties.TriggerMode
-
Constructor Summary
ConstructorDescriptionCreates a new fluent adapter.FluentAdapter
(FluentControlContainer controlContainer) Creates a new fluent adapter, using given control interface container.FluentAdapter
(FluentControlContainer controlContainer, Class<?> clazz) Creates a new fluent adapter, using given control interface container. -
Method Summary
Modifier and TypeMethodDescriptionfinal org.openqa.selenium.WebDriver
returns WebDriver instanceGet Fluent ControlMethods inherited from class io.fluentlenium.core.FluentControlImpl
getConfiguration, getControlContainer
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.fluentlenium.core.FluentControl
alert, asComponentList, asComponentList, asComponentList, asComponentList, asComponentList, asComponentList, asFluentList, asFluentList, asFluentList, asFluentList, asFluentList, asFluentList, await, canTakeScreenShot, capabilities, css, el, events, executeAsyncScript, executeScript, find, find, find, find, getAppiumDriver, getAwaitAtMost, getAwaitPollingEvery, getBaseUrl, getBrowserTimeout, getBrowserTimeoutRetries, getCapabilities, getChromiumApi, getConfiguration, getConfigurationDefaults, getConfigurationFactory, getControlContainer, getCookie, getCookies, getCustomProperty, getDeleteCookies, getDriverLifecycle, getEventsEnabled, getHtmlDumpMode, getHtmlDumpPath, getImplicitlyWait, getPageLoadTimeout, getRemoteUrl, getScreenshotMode, getScreenshotPath, getScriptTimeout, getWebDriver, goTo, goTo, goToInNewTab, inject, injectComponent, isComponentClass, isComponentListClass, keyboard, mouse, newComponent, newComponentList, newComponentList, newComponentList, newComponentList, newComponentList, newComponentList, newFluent, newFluentList, newFluentList, newFluentList, newFluentList, newFluentList, newFluentList, newInstance, pageSource, performanceTiming, setAwaitAtMost, setAwaitPollingEvery, setBaseUrl, setBrowserTimeout, setBrowserTimeoutRetries, setCapabilities, setConfigurationFactory, setCustomProperty, setDeleteCookies, setDriverLifecycle, setEventsEnabled, setHtmlDumpMode, setHtmlDumpPath, setImplicitlyWait, setPageLoadTimeout, setRemoteUrl, setScreenshotMode, setScreenshotPath, setScriptTimeout, setWebDriver, switchTo, switchTo, switchTo, switchToDefault, takeHtmlDump, takeHtmlDump, takeScreenshot, takeScreenshot, url, window
Methods inherited from interface io.fluentlenium.adapter.IFluentAdapter
initFluent, initFluent, isFluentControlAvailable, newWebDriver, releaseFluent, setFluentControl
-
Constructor Details
-
FluentAdapter
public FluentAdapter()Creates a new fluent adapter. -
FluentAdapter
Creates a new fluent adapter, using given control interface container.- Parameters:
controlContainer
- control interface container
-
FluentAdapter
Creates a new fluent adapter, using given control interface container.- Parameters:
controlContainer
- control interface containerclazz
- class from which annotation configuration will be looked up
-
-
Method Details
-
getDriver
public final org.openqa.selenium.WebDriver getDriver()Description copied from interface:IFluentAdapter
returns WebDriver instance- Specified by:
getDriver
in interfaceFluentControl
- Specified by:
getDriver
in interfaceIFluentAdapter
- Specified by:
getDriver
in interfaceSeleniumDriverControl
- Returns:
- current webdriver
-
getFluentControl
Description copied from interface:FluentControl
Get Fluent Control- Specified by:
getFluentControl
in interfaceFluentControl
- Specified by:
getFluentControl
in interfaceIFluentAdapter
- Overrides:
getFluentControl
in classFluentControlImpl
- Returns:
- FluentControl instance
-