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,FluentStandalone,FluentStandaloneRunnable,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.WebDriverreturns WebDriver instancedefault ContainerFluentControlGets Underlying FluentControlContainerdefault FluentControlinitFluent(org.openqa.selenium.WebDriver webDriver) default FluentControlinitFluent(org.openqa.selenium.WebDriver webDriver, Object container) Load aWebDriverinto this adapter.default booleanCheck if fluent control interface is available from the control interface container.default org.openqa.selenium.WebDriverCreates a newWebDriverinstance.default booleanRelease the currentWebDriverfrom this adapter.default FluentControlsetFluentControl(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 aWebDriverinto 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:
getFluentControlin interfaceFluentControl- Returns:
- fluentControlContainer instance
-
releaseFluent
default boolean releaseFluent()Release the currentWebDriverfrom this adapter.This method should not be called by end user.
-
newWebDriver
default org.openqa.selenium.WebDriver newWebDriver()Creates a newWebDriverinstance.This method should not be called by end user, but may be overriden if required.
Before overriding this method, you should consider using
WebDriversregistry 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:
getDriverin interfaceFluentControl- Specified by:
getDriverin interfaceSeleniumDriverControl- Returns:
- current webdriver
-