Package org.fluentlenium.core.inject
Class ContainerFluentControl
- java.lang.Object
-
- org.fluentlenium.core.FluentControlImpl
-
- org.fluentlenium.core.inject.ContainerFluentControl
-
- All Implemented Interfaces:
Configuration
,ConfigurationMutator
,ConfigurationProperties
,InputControl
,AlertControl
,CapabilitiesControl
,ComponentInstantiator
,CssControl
,EventsControl
,FluentControl
,FluentInjectControl
,NavigationControl
,JavascriptControl
,SearchControl<FluentWebElement>
,SeleniumDriverControl
,SnapshotControl
,AwaitControl
public class ContainerFluentControl extends FluentControlImpl implements FluentControl
Container global FluentLenium control interface.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.fluentlenium.configuration.ConfigurationProperties
ConfigurationProperties.DriverLifecycle, ConfigurationProperties.TriggerMode
-
-
Constructor Summary
Constructors Constructor Description ContainerFluentControl(FluentControl adapterControl)
Creates a new container fluent control.ContainerFluentControl(FluentControl adapterControl, ContainerContext context)
Creates a new container fluent control.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FluentList<FluentWebElement>
$(java.lang.String selector, SearchFilter... filters)
Find list of elements with CSS selector and filters.FluentList<FluentWebElement>
$(java.util.List<org.openqa.selenium.WebElement> rawElements)
Wrap raw selenium elements into a list of elements.FluentList<FluentWebElement>
$(SearchFilter... filters)
Find list of elements with filters.FluentList<FluentWebElement>
$(org.openqa.selenium.By locator, SearchFilter... filters)
Find list of elements with Selenium locator and filters.FluentWebElement
el(java.lang.String selector, SearchFilter... filters)
Find first element with CSS selector and filters.FluentWebElement
el(SearchFilter... filters)
Find first element with filters.FluentWebElement
el(org.openqa.selenium.By locator, SearchFilter... filters)
Find first element with Selenium locator and filters.FluentWebElement
el(org.openqa.selenium.WebElement rawElement)
Wrap existing raw selenium element into an element.FluentList<FluentWebElement>
find(java.lang.String selector, SearchFilter... filters)
Find list of elements with CSS selector and filters.FluentList<FluentWebElement>
find(java.util.List<org.openqa.selenium.WebElement> rawElements)
Wrap raw selenium elements into a list of elements.FluentList<FluentWebElement>
find(SearchFilter... filters)
Find list of elements with filters.FluentList<FluentWebElement>
find(org.openqa.selenium.By locator, SearchFilter... filters)
Find list of elements with Selenium locator and filters.FluentControl
getAdapterControl()
Get the underlying control from the test adapter.org.openqa.selenium.WebDriver
getDriver()
Get the actual underlying Selenium WebDriver.FluentControl
getFluentControl()
void
setContext(ContainerContext context)
Define the container context of this container fluent control interface.-
Methods inherited from class org.fluentlenium.core.FluentControlImpl
alert, asComponentList, asComponentList, asComponentList, asComponentList, asComponentList, asComponentList, asFluentList, asFluentList, asFluentList, asFluentList, asFluentList, asFluentList, await, canTakeScreenShot, capabilities, css, events, executeAsyncScript, executeScript, getAwaitAtMost, getAwaitPollingEvery, getBaseUrl, getBrowserTimeout, getBrowserTimeoutRetries, getCapabilities, 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, 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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.fluentlenium.core.alert.AlertControl
alert
-
Methods inherited from interface org.fluentlenium.core.wait.AwaitControl
await
-
Methods inherited from interface org.fluentlenium.core.capabilities.CapabilitiesControl
capabilities
-
Methods inherited from interface org.fluentlenium.core.components.ComponentInstantiator
asComponentList, asComponentList, asComponentList, asComponentList, asComponentList, asComponentList, asFluentList, asFluentList, asFluentList, asFluentList, asFluentList, asFluentList, isComponentClass, isComponentListClass, newComponent, newComponentList, newComponentList, newComponentList, newComponentList, newComponentList, newComponentList, newFluent, newFluentList, newFluentList, newFluentList, newFluentList, newFluentList, newFluentList
-
Methods inherited from interface org.fluentlenium.configuration.ConfigurationMutator
setAwaitAtMost, setAwaitPollingEvery, setBaseUrl, setBrowserTimeout, setBrowserTimeoutRetries, setCapabilities, setConfigurationFactory, setCustomProperty, setDeleteCookies, setDriverLifecycle, setEventsEnabled, setHtmlDumpMode, setHtmlDumpPath, setImplicitlyWait, setPageLoadTimeout, setRemoteUrl, setScreenshotMode, setScreenshotPath, setScriptTimeout, setWebDriver
-
Methods inherited from interface org.fluentlenium.configuration.ConfigurationProperties
getAwaitAtMost, getAwaitPollingEvery, getBaseUrl, getBrowserTimeout, getBrowserTimeoutRetries, getCapabilities, getConfigurationDefaults, getConfigurationFactory, getCustomProperty, getDeleteCookies, getDriverLifecycle, getEventsEnabled, getHtmlDumpMode, getHtmlDumpPath, getImplicitlyWait, getPageLoadTimeout, getRemoteUrl, getScreenshotMode, getScreenshotPath, getScriptTimeout, getWebDriver
-
Methods inherited from interface org.fluentlenium.core.css.CssControl
css
-
Methods inherited from interface org.fluentlenium.core.events.EventsControl
events
-
Methods inherited from interface org.fluentlenium.core.inject.FluentInjectControl
inject, injectComponent, newInstance
-
Methods inherited from interface org.fluentlenium.core.action.InputControl
keyboard, mouse
-
Methods inherited from interface org.fluentlenium.core.script.JavascriptControl
executeAsyncScript, executeScript
-
Methods inherited from interface org.fluentlenium.core.navigation.NavigationControl
getCookie, getCookies, goTo, goTo, goToInNewTab, pageSource, switchTo, switchTo, switchTo, switchToDefault, url, window
-
Methods inherited from interface org.fluentlenium.core.snapshot.SnapshotControl
canTakeScreenShot, takeHtmlDump, takeHtmlDump, takeScreenshot, takeScreenshot
-
-
-
-
Constructor Detail
-
ContainerFluentControl
public ContainerFluentControl(FluentControl adapterControl)
Creates a new container fluent control.- Parameters:
adapterControl
- test adapter control interface
-
ContainerFluentControl
public ContainerFluentControl(FluentControl adapterControl, ContainerContext context)
Creates a new container fluent control.- Parameters:
adapterControl
- test adapter control interfacecontext
- container context
-
-
Method Detail
-
getAdapterControl
public FluentControl 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:SeleniumDriverControl
Get the actual underlying Selenium WebDriver.To customize the WebDriver, you should configure
FluentControlImpl.getWebDriver()
or overrideFluentAdapter.newWebDriver()
.This method can't be override to customize the WebDriver.
- Specified by:
getDriver
in interfaceSeleniumDriverControl
- Returns:
- The actual underlying Selenium WebDriver
-
getFluentControl
public FluentControl getFluentControl()
- Overrides:
getFluentControl
in classFluentControlImpl
-
setContext
public void setContext(ContainerContext context)
Define the container context of this container fluent control interface.- Parameters:
context
- container context
-
find
public FluentList<FluentWebElement> find(java.lang.String selector, SearchFilter... filters)
Description copied from interface:SearchControl
Find list of elements with CSS selector and filters.- Specified by:
find
in interfaceSearchControl<FluentWebElement>
- Overrides:
find
in classFluentControlImpl
- Parameters:
selector
- CSS selectorfilters
- set of filters- Returns:
- list of element
-
$
public FluentList<FluentWebElement> $(java.lang.String selector, SearchFilter... filters)
Description copied from interface:SearchControl
Find list of elements with CSS selector and filters.- Specified by:
$
in interfaceSearchControl<FluentWebElement>
- Parameters:
selector
- CSS selectorfilters
- set of filters- Returns:
- list of element
-
el
public FluentWebElement el(java.lang.String selector, SearchFilter... filters)
Description copied from interface:SearchControl
Find first element with CSS selector and filters.- Specified by:
el
in interfaceSearchControl<FluentWebElement>
- Parameters:
selector
- CSS selectorfilters
- set of filters- Returns:
- element
-
find
public FluentList<FluentWebElement> find(SearchFilter... filters)
Description copied from interface:SearchControl
Find list of elements with filters.- Specified by:
find
in interfaceSearchControl<FluentWebElement>
- Overrides:
find
in classFluentControlImpl
- Parameters:
filters
- set of filters in the current context- Returns:
- list of elements
-
$
public FluentList<FluentWebElement> $(SearchFilter... filters)
Description copied from interface:SearchControl
Find list of elements with filters.- Specified by:
$
in interfaceSearchControl<FluentWebElement>
- Parameters:
filters
- set of filters in the current context- Returns:
- list of elements
-
el
public FluentWebElement el(SearchFilter... filters)
Description copied from interface:SearchControl
Find first element with filters.- Specified by:
el
in interfaceSearchControl<FluentWebElement>
- Parameters:
filters
- set of filters in the current context- Returns:
- element
-
find
public FluentList<FluentWebElement> find(org.openqa.selenium.By locator, SearchFilter... filters)
Description copied from interface:SearchControl
Find list of elements with Selenium locator and filters.- Specified by:
find
in interfaceSearchControl<FluentWebElement>
- Overrides:
find
in classFluentControlImpl
- Parameters:
locator
- elements locatorfilters
- filters set- Returns:
- list of elements
-
$
public FluentList<FluentWebElement> $(org.openqa.selenium.By locator, SearchFilter... filters)
Description copied from interface:SearchControl
Find list of elements with Selenium locator and filters.- Specified by:
$
in interfaceSearchControl<FluentWebElement>
- Parameters:
locator
- elements locatorfilters
- filters set- Returns:
- list of elements
-
find
public FluentList<FluentWebElement> find(java.util.List<org.openqa.selenium.WebElement> rawElements)
Description copied from interface:SearchControl
Wrap raw selenium elements into a list of elements.- Specified by:
find
in interfaceSearchControl<FluentWebElement>
- Overrides:
find
in classFluentControlImpl
- Parameters:
rawElements
- raw selenium elements- Returns:
- list of element
-
$
public FluentList<FluentWebElement> $(java.util.List<org.openqa.selenium.WebElement> rawElements)
Description copied from interface:SearchControl
Wrap raw selenium elements into a list of elements.- Specified by:
$
in interfaceSearchControl<FluentWebElement>
- Parameters:
rawElements
- raw selenium elements- Returns:
- list of element
-
el
public FluentWebElement el(org.openqa.selenium.WebElement rawElement)
Description copied from interface:SearchControl
Wrap existing raw selenium element into an element.- Specified by:
el
in interfaceSearchControl<FluentWebElement>
- Overrides:
el
in classFluentControlImpl
- Parameters:
rawElement
- raw selenium element- Returns:
- element
-
el
public FluentWebElement el(org.openqa.selenium.By locator, SearchFilter... filters)
Description copied from interface:SearchControl
Find first element with Selenium locator and filters.- Specified by:
el
in interfaceSearchControl<FluentWebElement>
- Parameters:
locator
- elements locatorfilters
- filters set- Returns:
- element
-
-