Package io.fluentlenium.core.inject
Class ContainerFluentControl
java.lang.Object
io.fluentlenium.core.FluentControlImpl
io.fluentlenium.core.inject.ContainerFluentControl
- All Implemented Interfaces:
Configuration,ConfigurationMutator,ConfigurationProperties,InputControl,AlertControl,CapabilitiesControl,ComponentInstantiator,CssControl,EventsControl,FluentControl,FluentInjectControl,NavigationControl,PerformanceTimingControl,JavascriptControl,SearchControl<FluentWebElement>,SeleniumDriverControl,SnapshotControl,AwaitControl,ChromiumControl
Container global FluentLenium control interface.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.fluentlenium.configuration.ConfigurationProperties
ConfigurationProperties.DriverLifecycle, ConfigurationProperties.TriggerMode -
Constructor Summary
ConstructorsConstructorDescriptionContainerFluentControl(FluentControl adapterControl) Creates a new container fluent control.ContainerFluentControl(FluentControl adapterControl, ContainerContext context) Creates a new container fluent control. -
Method Summary
Modifier and TypeMethodDescription$(io.appium.java_client.AppiumBy locator, SearchFilter... filters) Find list of elements with Appium locator and filters.$(SearchFilter... filters) Find list of elements with filters.$(String selector, SearchFilter... filters) Find list of elements with CSS selector and filters.Wrap raw selenium elements into a list of elements.$(org.openqa.selenium.By locator, SearchFilter... filters) Find list of elements with Selenium locator and filters.el(io.appium.java_client.AppiumBy locator, SearchFilter... filters) Find first element with Appium locator and filters.el(SearchFilter... filters) Find first element with filters.el(String selector, SearchFilter... filters) Find first element with CSS selector and filters.el(org.openqa.selenium.By locator, SearchFilter... filters) Find first element with Selenium locator and filters.el(org.openqa.selenium.WebElement rawElement) Wrap existing raw selenium element into an element.find(SearchFilter... filters) Find list of elements with filters.find(String selector, SearchFilter... filters) Find list of elements with CSS selector and filters.Wrap raw selenium elements into a list of elements.find(org.openqa.selenium.By locator, SearchFilter... filters) Find list of elements with Selenium locator and filters.Get the underlying control from the test adapter.final org.openqa.selenium.WebDriverGet the actual underlying Selenium WebDriver.Get Fluent ControlvoidsetContext(ContainerContext context) Define the container context of this container fluent control interface.Methods 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, events, executeAsyncScript, executeScript, getAppiumDriver, getAwaitAtMost, getAwaitPollingEvery, getBaseUrl, getBrowserTimeout, getBrowserTimeoutRetries, getCapabilities, getChromiumApi, getConfigurationDefaults, getConfigurationFactory, 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
-
Constructor Details
-
ContainerFluentControl
Creates a new container fluent control.- Parameters:
adapterControl- test adapter control interface
-
ContainerFluentControl
Creates a new container fluent control.- Parameters:
adapterControl- test adapter control interfacecontext- container context
-
-
Method Details
-
getAdapterControl
Get the underlying control from the test adapter.- Returns:
- underlying control interface from the test adapter
-
getDriver
public final org.openqa.selenium.WebDriver getDriver()Description copied from interface:SeleniumDriverControlGet the actual underlying Selenium WebDriver.To customize the WebDriver, you should configure
FluentControl.getWebDriver()or overrideIFluentAdapter.newWebDriver().This method can't be overridden to customize the WebDriver.
- Returns:
- The actual underlying Selenium WebDriver
-
getFluentControl
Description copied from interface:FluentControlGet Fluent Control- Specified by:
getFluentControlin interfaceFluentControl- Overrides:
getFluentControlin classFluentControlImpl- Returns:
- FluentControl instance
-
setContext
Define the container context of this container fluent control interface.- Parameters:
context- container context
-
find
Description copied from interface:SearchControlFind list of elements with CSS selector and filters.- Parameters:
selector- CSS selectorfilters- set of filters- Returns:
- list of element
-
$
Description copied from interface:SearchControlFind list of elements with CSS selector and filters.- Parameters:
selector- CSS selectorfilters- set of filters- Returns:
- list of element
-
el
Description copied from interface:SearchControlFind first element with CSS selector and filters.- Parameters:
selector- CSS selectorfilters- set of filters- Returns:
- element
-
find
Description copied from interface:SearchControlFind list of elements with filters.- Parameters:
filters- set of filters in the current context- Returns:
- list of elements
-
$
Description copied from interface:SearchControlFind list of elements with filters.- Parameters:
filters- set of filters in the current context- Returns:
- list of elements
-
el
Description copied from interface:SearchControlFind first element with filters.- Parameters:
filters- set of filters in the current context- Returns:
- element
-
find
Description copied from interface:SearchControlFind list of elements with Selenium locator and filters.- Parameters:
locator- elements locatorfilters- filters set- Returns:
- list of elements
-
$
Description copied from interface:SearchControlFind list of elements with Selenium locator and filters.- Parameters:
locator- elements locatorfilters- filters set- Returns:
- list of elements
-
$
public FluentList<FluentWebElement> $(io.appium.java_client.AppiumBy locator, SearchFilter... filters) Description copied from interface:SearchControlFind list of elements with Appium locator and filters.- Parameters:
locator- mobile elements locatorfilters- filters set- Returns:
- list of elements
-
find
Description copied from interface:SearchControlWrap raw selenium elements into a list of elements.- Parameters:
rawElements- raw selenium elements- Returns:
- list of element
-
$
Description copied from interface:SearchControlWrap raw selenium elements into a list of elements.- Parameters:
rawElements- raw selenium elements- Returns:
- list of element
-
el
Description copied from interface:SearchControlWrap existing raw selenium element into an element.- Parameters:
rawElement- raw selenium element- Returns:
- element
-
el
Description copied from interface:SearchControlFind first element with Selenium locator and filters.- Parameters:
locator- elements locatorfilters- filters set- Returns:
- element
-
el
Description copied from interface:SearchControlFind first element with Appium locator and filters.- Parameters:
locator- mobile elements locatorfilters- filters set- Returns:
- element
-