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

public class ContainerFluentControl extends FluentControlImpl
Container global FluentLenium control interface.
  • Constructor Details

    • 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 interface
      context - container context
  • Method Details

    • 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 FluentControl.getWebDriver() or override IFluentAdapter.newWebDriver().

      This method can't be overridden to customize the WebDriver.

      Returns:
      The actual underlying Selenium WebDriver
    • getFluentControl

      public FluentControl getFluentControl()
      Description copied from interface: FluentControl
      Get Fluent Control
      Specified by:
      getFluentControl in interface FluentControl
      Overrides:
      getFluentControl in class FluentControlImpl
      Returns:
      FluentControl instance
    • 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 (String selector, SearchFilter... filters)
      Description copied from interface: SearchControl
      Find list of elements with CSS selector and filters.
      Parameters:
      selector - CSS selector
      filters - set of filters
      Returns:
      list of element
    • $

      public FluentList<FluentWebElement> $ (String selector, SearchFilter... filters)
      Description copied from interface: SearchControl
      Find list of elements with CSS selector and filters.
      Parameters:
      selector - CSS selector
      filters - set of filters
      Returns:
      list of element
    • el

      public FluentWebElement el (String selector, SearchFilter... filters)
      Description copied from interface: SearchControl
      Find first element with CSS selector and filters.
      Parameters:
      selector - CSS selector
      filters - set of filters
      Returns:
      element
    • find

      public FluentList<FluentWebElement> find (SearchFilter... filters)
      Description copied from interface: SearchControl
      Find list of elements with filters.
      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.
      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.
      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.
      Parameters:
      locator - elements locator
      filters - 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.
      Parameters:
      locator - elements locator
      filters - filters set
      Returns:
      list of elements
    • $

      public FluentList<FluentWebElement> $ (io.appium.java_client.AppiumBy locator, SearchFilter... filters)
      Description copied from interface: SearchControl
      Find list of elements with Appium locator and filters.
      Parameters:
      locator - mobile elements locator
      filters - filters set
      Returns:
      list of elements
    • find

      public FluentList<FluentWebElement> find (List<org.openqa.selenium.WebElement> rawElements)
      Description copied from interface: SearchControl
      Wrap raw selenium elements into a list of elements.
      Parameters:
      rawElements - raw selenium elements
      Returns:
      list of element
    • $

      public FluentList<FluentWebElement> $ (List<org.openqa.selenium.WebElement> rawElements)
      Description copied from interface: SearchControl
      Wrap raw selenium elements into a list of elements.
      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.
      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.
      Parameters:
      locator - elements locator
      filters - filters set
      Returns:
      element
    • el

      public FluentWebElement el (io.appium.java_client.AppiumBy locator, SearchFilter... filters)
      Description copied from interface: SearchControl
      Find first element with Appium locator and filters.
      Parameters:
      locator - mobile elements locator
      filters - filters set
      Returns:
      element