Class AbstractComponentInstantiator

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <L extends java.util.List<T>,​T>
      L
      asComponentList​(java.lang.Class<L> listClass, java.lang.Class<T> componentClass, java.lang.Iterable<org.openqa.selenium.WebElement> elements)
      Create and register a new list of component from the given element iterable.
      <L extends java.util.List<T>,​T>
      L
      asComponentList​(java.lang.Class<L> listClass, java.lang.Class<T> componentClass, java.util.List<org.openqa.selenium.WebElement> elements)
      Create and register a new list of component from the given element iterable.
      <L extends java.util.List<T>,​T>
      L
      asComponentList​(java.lang.Class<L> listClass, java.lang.Class<T> componentClass, org.openqa.selenium.WebElement... elements)
      Create and register a new list of component from the given element iterable.
      <T> ComponentList<T> asComponentList​(java.lang.Class<T> componentClass, java.lang.Iterable<org.openqa.selenium.WebElement> elements)
      Create and register a new list of component from the given element iterable.
      <T> ComponentList<T> asComponentList​(java.lang.Class<T> componentClass, java.util.List<org.openqa.selenium.WebElement> elements)
      Create and register a new list of component from the given element iterable.
      <T> ComponentList<T> asComponentList​(java.lang.Class<T> componentClass, org.openqa.selenium.WebElement... elements)
      Create and register a new list of component from the given element iterable.
      <T extends FluentWebElement>
      FluentList<T>
      asFluentList​(java.lang.Class<T> componentClass, java.lang.Iterable<org.openqa.selenium.WebElement> elements)
      create and register a new fluent list.
      <T extends FluentWebElement>
      FluentList<T>
      asFluentList​(java.lang.Class<T> componentClass, java.util.List<org.openqa.selenium.WebElement> elements)
      create and register a new fluent list.
      <T extends FluentWebElement>
      FluentList<T>
      asFluentList​(java.lang.Class<T> componentClass, org.openqa.selenium.WebElement... elements)
      create and register a new fluent list.
      FluentList<FluentWebElement> asFluentList​(java.lang.Iterable<org.openqa.selenium.WebElement> elements)
      create and register a new fluent list.
      FluentList<FluentWebElement> asFluentList​(java.util.List<org.openqa.selenium.WebElement> elements)
      create and register a new fluent list.
      FluentList<FluentWebElement> asFluentList​(org.openqa.selenium.WebElement... elements)
      create and register a new fluent list.
      <L extends java.util.List<T>,​T>
      L
      newComponentList​(java.lang.Class<L> listClass, java.lang.Class<T> componentClass)
      Create and register an empty list of component.
      <L extends java.util.List<T>,​T>
      L
      newComponentList​(java.lang.Class<L> listClass, java.lang.Class<T> componentClass, T... componentsList)
      Create and register a new list of component from the given component list.
      <T> ComponentList<T> newComponentList​(java.lang.Class<T> componentClass)
      Create and register an empty list of component.
      <T> ComponentList<T> newComponentList​(java.lang.Class<T> componentClass, java.util.List<T> componentsList)
      Create and register a new list of component from the given component list.
      <T> ComponentList<T> newComponentList​(java.lang.Class<T> componentClass, T... componentsList)
      Create and register a new list of component from the given component list.
      FluentWebElement newFluent​(org.openqa.selenium.WebElement element)
      Create and register a new fluent element from the given element.
      FluentList<FluentWebElement> newFluentList()
      create and register an empty fluent list.
      <T extends FluentWebElement>
      FluentList<T>
      newFluentList​(java.lang.Class<T> componentClass)
      create and register an empty fluent list.
      <T extends FluentWebElement>
      FluentList<T>
      newFluentList​(java.lang.Class<T> componentClass, java.util.List<T> elements)
      create and register a new fluent list.
      <T extends FluentWebElement>
      FluentList<T>
      newFluentList​(java.lang.Class<T> componentClass, T... elements)
      create and register a new fluent list.
      FluentList<FluentWebElement> newFluentList​(java.util.List<FluentWebElement> elements)
      create and register a new fluent list.
      FluentList<FluentWebElement> newFluentList​(FluentWebElement... elements)
      create and register a new fluent list.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractComponentInstantiator

        public AbstractComponentInstantiator()
    • Method Detail

      • newFluent

        public FluentWebElement newFluent​(org.openqa.selenium.WebElement element)
        Description copied from interface: ComponentInstantiator
        Create and register a new fluent element from the given element.
        Specified by:
        newFluent in interface ComponentInstantiator
        Parameters:
        element - wrapped element
        Returns:
        new instance of the component
      • newFluentList

        public <T extends FluentWebElementFluentList<T> newFluentList​(java.lang.Class<T> componentClass)
        Description copied from interface: ComponentInstantiator
        create and register an empty fluent list.
        Specified by:
        newFluentList in interface ComponentInstantiator
        Type Parameters:
        T - type of the component
        Parameters:
        componentClass - class of the component
        Returns:
        new list of fluent web element
      • newFluentList

        public <T extends FluentWebElementFluentList<T> newFluentList​(java.lang.Class<T> componentClass,
                                                                        T... elements)
        Description copied from interface: ComponentInstantiator
        create and register a new fluent list.
        Specified by:
        newFluentList in interface ComponentInstantiator
        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

        public <T extends FluentWebElementFluentList<T> newFluentList​(java.lang.Class<T> componentClass,
                                                                        java.util.List<T> elements)
        Description copied from interface: ComponentInstantiator
        create and register a new fluent list.
        Specified by:
        newFluentList in interface ComponentInstantiator
        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

        public <T extends FluentWebElementFluentList<T> asFluentList​(java.lang.Class<T> componentClass,
                                                                       org.openqa.selenium.WebElement... elements)
        Description copied from interface: ComponentInstantiator
        create and register a new fluent list.
        Specified by:
        asFluentList in interface ComponentInstantiator
        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

        public <T extends FluentWebElementFluentList<T> asFluentList​(java.lang.Class<T> componentClass,
                                                                       java.lang.Iterable<org.openqa.selenium.WebElement> elements)
        Description copied from interface: ComponentInstantiator
        create and register a new fluent list.
        Specified by:
        asFluentList in interface ComponentInstantiator
        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

        public <T extends FluentWebElementFluentList<T> asFluentList​(java.lang.Class<T> componentClass,
                                                                       java.util.List<org.openqa.selenium.WebElement> elements)
        Description copied from interface: ComponentInstantiator
        create and register a new fluent list.
        Specified by:
        asFluentList in interface ComponentInstantiator
        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

        public <L extends java.util.List<T>,​T> L newComponentList​(java.lang.Class<L> listClass,
                                                                        java.lang.Class<T> componentClass)
        Description copied from interface: ComponentInstantiator
        Create and register an empty list of component.
        Specified by:
        newComponentList in interface ComponentInstantiator
        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
      • newComponentList

        public <T> ComponentList<T> newComponentList​(java.lang.Class<T> componentClass)
        Description copied from interface: ComponentInstantiator
        Create and register an empty list of component.
        Specified by:
        newComponentList in interface ComponentInstantiator
        Type Parameters:
        T - type of the component
        Parameters:
        componentClass - type of the component
        Returns:
        new list of components
      • asComponentList

        public <T> ComponentList<T> asComponentList​(java.lang.Class<T> componentClass,
                                                    org.openqa.selenium.WebElement... elements)
        Description copied from interface: ComponentInstantiator
        Create and register a new list of component from the given element iterable.
        Specified by:
        asComponentList in interface ComponentInstantiator
        Type Parameters:
        T - type of the component
        Parameters:
        componentClass - type of the component
        elements - elements
        Returns:
        new list of components
      • asComponentList

        public <T> ComponentList<T> asComponentList​(java.lang.Class<T> componentClass,
                                                    java.lang.Iterable<org.openqa.selenium.WebElement> elements)
        Description copied from interface: ComponentInstantiator
        Create and register a new list of component from the given element iterable.
        Specified by:
        asComponentList in interface ComponentInstantiator
        Type Parameters:
        T - type of the component
        Parameters:
        componentClass - type of the component
        elements - elements
        Returns:
        new list of components
      • asComponentList

        public <T> ComponentList<T> asComponentList​(java.lang.Class<T> componentClass,
                                                    java.util.List<org.openqa.selenium.WebElement> elements)
        Description copied from interface: ComponentInstantiator
        Create and register a new list of component from the given element iterable.
        Specified by:
        asComponentList in interface ComponentInstantiator
        Type Parameters:
        T - type of the component
        Parameters:
        componentClass - type of the component
        elements - elements
        Returns:
        new list of components
      • newComponentList

        public <T> ComponentList<T> newComponentList​(java.lang.Class<T> componentClass,
                                                     T... componentsList)
        Description copied from interface: ComponentInstantiator
        Create and register a new list of component from the given component list.
        Specified by:
        newComponentList in interface ComponentInstantiator
        Type Parameters:
        T - type of the component
        Parameters:
        componentClass - type of the component
        componentsList - components list
        Returns:
        new list of components
      • newComponentList

        public <T> ComponentList<T> newComponentList​(java.lang.Class<T> componentClass,
                                                     java.util.List<T> componentsList)
        Description copied from interface: ComponentInstantiator
        Create and register a new list of component from the given component list.
        Specified by:
        newComponentList in interface ComponentInstantiator
        Type Parameters:
        T - type of the component
        Parameters:
        componentClass - type of the component
        componentsList - components list
        Returns:
        new list of components
      • newComponentList

        public <L extends java.util.List<T>,​T> L newComponentList​(java.lang.Class<L> listClass,
                                                                        java.lang.Class<T> componentClass,
                                                                        T... componentsList)
        Description copied from interface: ComponentInstantiator
        Create and register a new list of component from the given component list.
        Specified by:
        newComponentList in interface ComponentInstantiator
        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
      • asComponentList

        public <L extends java.util.List<T>,​T> L asComponentList​(java.lang.Class<L> listClass,
                                                                       java.lang.Class<T> componentClass,
                                                                       org.openqa.selenium.WebElement... elements)
        Description copied from interface: ComponentInstantiator
        Create and register a new list of component from the given element iterable.
        Specified by:
        asComponentList in interface ComponentInstantiator
        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

        public <L extends java.util.List<T>,​T> L asComponentList​(java.lang.Class<L> listClass,
                                                                       java.lang.Class<T> componentClass,
                                                                       java.lang.Iterable<org.openqa.selenium.WebElement> elements)
        Description copied from interface: ComponentInstantiator
        Create and register a new list of component from the given element iterable.
        Specified by:
        asComponentList in interface ComponentInstantiator
        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

        public <L extends java.util.List<T>,​T> L asComponentList​(java.lang.Class<L> listClass,
                                                                       java.lang.Class<T> componentClass,
                                                                       java.util.List<org.openqa.selenium.WebElement> elements)
        Description copied from interface: ComponentInstantiator
        Create and register a new list of component from the given element iterable.
        Specified by:
        asComponentList in interface ComponentInstantiator
        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