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
ConstructorsConstructorDescriptionCreates 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.WebDriverreturns WebDriver instanceGet Fluent ControlMethods inherited from class io.fluentlenium.core.FluentControlImpl
getConfiguration, getControlContainerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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, windowMethods 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:IFluentAdapterreturns WebDriver instance- Specified by:
getDriverin interfaceFluentControl- Specified by:
getDriverin interfaceIFluentAdapter- Specified by:
getDriverin interfaceSeleniumDriverControl- Returns:
- current webdriver
-
getFluentControl
Description copied from interface:FluentControlGet Fluent Control- Specified by:
getFluentControlin interfaceFluentControl- Specified by:
getFluentControlin interfaceIFluentAdapter- Overrides:
getFluentControlin classFluentControlImpl- Returns:
- FluentControl instance
-