Interface ComponentInstantiator

    • Method Detail

      • newFluent

        FluentWebElement newFluent​(org.openqa.selenium.WebElement element)
        Create and register a new FluentWebElement from the given WebElement.
        Parameters:
        element - wrapped element
        Returns:
        new instance of the component
      • newComponent

        <T> T newComponent​(Class<T> componentClass,
                           org.openqa.selenium.WebElement element)
        Create and register a new component of the provided type from the given WebElement.
        Type Parameters:
        T - type of the component
        Parameters:
        componentClass - type of the component
        element - wrapped element
        Returns:
        new instance of the component
      • newFluentList

        FluentList<FluentWebElement> newFluentList()
        Create and register an empty fluent list.
        Returns:
        new list of fluent web element
      • newFluentList

        FluentList<FluentWebElement> newFluentList​(FluentWebElement... elements)
        Create and register a new fluent list from the argument FluentWebElements.
        Parameters:
        elements - list of elements
        Returns:
        new list of fluent web element
      • newFluentList

        FluentList<FluentWebElement> newFluentList​(List<FluentWebElement> elements)
        Create and register a new fluent list from the argument list of FluentWebElements.
        Parameters:
        elements - list of elements
        Returns:
        new list of fluent web element
      • asFluentList

        FluentList<FluentWebElement> asFluentList​(org.openqa.selenium.WebElement... elements)
        Create and register a new fluent list from the argument WebElements.
        Parameters:
        elements - list of elements
        Returns:
        new list of fluent web element
      • asFluentList

        FluentList<FluentWebElement> asFluentList​(Iterable<org.openqa.selenium.WebElement> elements)
        Create and register a new fluent list from the argument collection of WebElements.
        Parameters:
        elements - list of elements
        Returns:
        new list of fluent web element
      • asFluentList

        FluentList<FluentWebElement> asFluentList​(List<org.openqa.selenium.WebElement> elements)
        Create and register a new fluent list from the argument list of WebElements.
        Parameters:
        elements - list of elements
        Returns:
        new list of fluent web element
      • newFluentList

        <T extends FluentWebElementFluentList<T> newFluentList​(Class<T> componentClass)
        Create and register an empty fluent list of the provided type.
        Type Parameters:
        T - type of the component
        Parameters:
        componentClass - class of the component
        Returns:
        new list of fluent web element
      • newFluentList

        <T extends FluentWebElementFluentList<T> newFluentList​(Class<T> componentClass,
                                                                 T... elements)
        Create and register a new fluent list.
        Type Parameters:
        T - type of the component
        Parameters:
        componentClass - class of the component
        elements - list of elements
        Returns:
        new list of fluent web element
      • newFluentList

        <T extends FluentWebElementFluentList<T> newFluentList​(Class<T> componentClass,
                                                                 List<T> elements)
        Create and register a new fluent list.
        Type Parameters:
        T - type of the component
        Parameters:
        componentClass - class of the component
        elements - list of elements
        Returns:
        new list of fluent web element
      • asFluentList

        <T extends FluentWebElementFluentList<T> asFluentList​(Class<T> componentClass,
                                                                org.openqa.selenium.WebElement... elements)
        Create and register a new fluent list.
        Type Parameters:
        T - type of the component
        Parameters:
        componentClass - class of the component
        elements - list of elements
        Returns:
        new list of fluent web element
      • asFluentList

        <T extends FluentWebElementFluentList<T> asFluentList​(Class<T> componentClass,
                                                                Iterable<org.openqa.selenium.WebElement> elements)
        Create and register a new fluent list.
        Type Parameters:
        T - type of the component
        Parameters:
        componentClass - class of the component
        elements - list of elements
        Returns:
        new list of fluent web element
      • asFluentList

        <T extends FluentWebElementFluentList<T> asFluentList​(Class<T> componentClass,
                                                                List<org.openqa.selenium.WebElement> elements)
        Create and register a new fluent list.
        Type Parameters:
        T - type of the component
        Parameters:
        componentClass - class of the component
        elements - list of elements
        Returns:
        new list of fluent web element
      • newComponentList

        <T> ComponentList<T> newComponentList​(Class<T> componentClass)
        Create and register an empty list of component.
        Type Parameters:
        T - type of the component
        Parameters:
        componentClass - type of the component
        Returns:
        new list of components
      • asComponentList

        <T> ComponentList<T> asComponentList​(Class<T> componentClass,
                                             org.openqa.selenium.WebElement... elements)
        Create and register a new list of component from the given element iterable.
        Type Parameters:
        T - type of the component
        Parameters:
        componentClass - type of the component
        elements - elements
        Returns:
        new list of components
      • asComponentList

        <T> ComponentList<T> asComponentList​(Class<T> componentClass,
                                             Iterable<org.openqa.selenium.WebElement> elements)
        Create and register a new list of component from the given element iterable.
        Type Parameters:
        T - type of the component
        Parameters:
        componentClass - type of the component
        elements - elements
        Returns:
        new list of components
      • asComponentList

        <T> ComponentList<T> asComponentList​(Class<T> componentClass,
                                             List<org.openqa.selenium.WebElement> elements)
        Create and register a new list of component from the given element iterable.
        Type Parameters:
        T - type of the component
        Parameters:
        componentClass - type of the component
        elements - elements
        Returns:
        new list of components
      • newComponentList

        <T> ComponentList<T> newComponentList​(Class<T> componentClass,
                                              T... componentsList)
        Create and register a new list of component from the given component list.
        Type Parameters:
        T - type of the component
        Parameters:
        componentClass - type of the component
        componentsList - components list
        Returns:
        new list of components
      • newComponentList

        <T> ComponentList<T> newComponentList​(Class<T> componentClass,
                                              List<T> componentsList)
        Create and register a new list of component from the given component list.
        Type Parameters:
        T - type of the component
        Parameters:
        componentClass - type of the component
        componentsList - components list
        Returns:
        new list of components
      • newComponentList

        <L extends List<T>,​T> L newComponentList​(Class<L> listClass,
                                                       Class<T> componentClass)
        Create and register an empty list of component.
        Type Parameters:
        L - type of the list
        T - type of the component
        Parameters:
        listClass - type of the list
        componentClass - type of the component
        Returns:
        new list of components
      • asComponentList

        <L extends List<T>,​T> L asComponentList​(Class<L> listClass,
                                                      Class<T> componentClass,
                                                      org.openqa.selenium.WebElement... elements)
        Create and register a new list of component from the given element iterable.
        Type Parameters:
        L - type of the list
        T - type of the component
        Parameters:
        listClass - type of the list
        componentClass - type of the component
        elements - elements
        Returns:
        new list of components
      • asComponentList

        <L extends List<T>,​T> L asComponentList​(Class<L> listClass,
                                                      Class<T> componentClass,
                                                      Iterable<org.openqa.selenium.WebElement> elements)
        Create and register a new list of component from the given element iterable.
        Type Parameters:
        L - type of the list
        T - type of the component
        Parameters:
        listClass - type of the list
        componentClass - type of the component
        elements - elements
        Returns:
        new list of components
      • asComponentList

        <L extends List<T>,​T> L asComponentList​(Class<L> listClass,
                                                      Class<T> componentClass,
                                                      List<org.openqa.selenium.WebElement> elements)
        Create and register a new list of component from the given element iterable.
        Type Parameters:
        L - type of the list
        T - type of the component
        Parameters:
        listClass - type of the list
        componentClass - type of the component
        elements - elements
        Returns:
        new list of components
      • newComponentList

        <L extends List<T>,​T> L newComponentList​(Class<L> listClass,
                                                       Class<T> componentClass,
                                                       T... componentsList)
        Create and register a new list of component from the given component list.
        Type Parameters:
        L - type of the list
        T - type of the component
        Parameters:
        listClass - type of the list
        componentClass - type of the component
        componentsList - components list
        Returns:
        new list of components
      • newComponentList

        <L extends List<T>,​T> L newComponentList​(Class<L> listClass,
                                                       Class<T> componentClass,
                                                       List<T> componentsList)
        Create and register a new list of component from the given component list.
        Type Parameters:
        L - type of the list
        T - type of the component
        Parameters:
        listClass - type of the list
        componentClass - type of the component
        componentsList - components list
        Returns:
        new list of components
      • isComponentClass

        boolean isComponentClass​(Class<?> componentClass)
        Check if this class is a component class.
        Parameters:
        componentClass - class to check
        Returns:
        true if this class is a component class, false otherwise
      • isComponentListClass

        boolean isComponentListClass​(Class<? extends List<?>> componentListClass)
        Check if this class is a component list class.
        Parameters:
        componentListClass - class to check
        Returns:
        true if this class is a component list class, false otherwise