Package io.fluentlenium.adapter
Interface IFluentAdapter
- All Superinterfaces:
AlertControl
,AwaitControl
,CapabilitiesControl
,ChromiumControl
,ComponentInstantiator
,Configuration
,ConfigurationMutator
,ConfigurationProperties
,CssControl
,EventsControl
,FluentControl
,FluentInjectControl
,InputControl
,JavascriptControl
,NavigationControl
,PerformanceTimingControl
,SearchControl<FluentWebElement>
,SeleniumDriverControl
,SnapshotControl
- All Known Implementing Classes:
FluentAdapter
,FluentCucumberTest
,FluentStandalone
,FluentStandaloneRunnable
,FluentTest
,FluentTest
,FluentTestNg
,FluentTestNgSpringTest
,FluentTestRunnerAdapter
,IsolatedTest
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.fluentlenium.configuration.ConfigurationProperties
ConfigurationProperties.DriverLifecycle, ConfigurationProperties.TriggerMode
-
Method Summary
Modifier and TypeMethodDescriptiondefault org.openqa.selenium.WebDriver
returns WebDriver instancedefault ContainerFluentControl
Gets Underlying FluentControlContainerdefault FluentControl
initFluent
(org.openqa.selenium.WebDriver webDriver) default FluentControl
initFluent
(org.openqa.selenium.WebDriver webDriver, Object container) Load aWebDriver
into this adapter.default boolean
Check if fluent control interface is available from the control interface container.default org.openqa.selenium.WebDriver
Creates a newWebDriver
instance.default boolean
Release the currentWebDriver
from this adapter.default FluentControl
setFluentControl
(ContainerFluentControl fluentControl) Sets FluentControlMethods 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
-
Method Details
-
isFluentControlAvailable
default boolean isFluentControlAvailable()Check if fluent control interface is available from the control interface container.- Returns:
- true if the fluent control interface is available, false otherwise
-
setFluentControl
Sets FluentControl- Parameters:
fluentControl
- to set- Returns:
- FluentControl
-
initFluent
Load aWebDriver
into this adapter.This method should not be called by end user.
- Parameters:
webDriver
- webDriver to use.container
- instance where FluentLenium should inject dependencies- Returns:
- initialized FluentControl
- Throws:
IllegalStateException
- when trying to register a different webDriver that the current one.
-
initFluent
-
getFluentControl
Gets Underlying FluentControlContainer- Specified by:
getFluentControl
in interfaceFluentControl
- Returns:
- fluentControlContainer instance
-
releaseFluent
default boolean releaseFluent()Release the currentWebDriver
from this adapter.This method should not be called by end user.
-
newWebDriver
default org.openqa.selenium.WebDriver newWebDriver()Creates a newWebDriver
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 configurationConfigurationProperties.getWebDriver()
.To retrieve the current managed
WebDriver
, callgetDriver()
instead.- Returns:
- A new WebDriver instance.
- See Also:
-
getDriver
default org.openqa.selenium.WebDriver getDriver()returns WebDriver instance- Specified by:
getDriver
in interfaceFluentControl
- Specified by:
getDriver
in interfaceSeleniumDriverControl
- Returns:
- current webdriver
-