Class ContainerFluentControl

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

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

        Returns:
        The actual underlying Selenium WebDriver
      • 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
      • 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
      • 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.MobileBy 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.MobileBy 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