Package org.fluentlenium.core.components
Class AbstractComponentInstantiator
- java.lang.Object
-
- org.fluentlenium.core.components.AbstractComponentInstantiator
-
- All Implemented Interfaces:
ComponentInstantiator
- Direct Known Subclasses:
ComponentsManager
,DefaultComponentInstantiator
public abstract class AbstractComponentInstantiator extends java.lang.Object implements ComponentInstantiator
Abstract component instantiator.
-
-
Constructor Summary
Constructors Constructor Description AbstractComponentInstantiator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <L extends java.util.List<T>,T>
LasComponentList(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>
LasComponentList(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>
LasComponentList(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 from the argument collection of WebElements.FluentList<FluentWebElement>
asFluentList(java.util.List<org.openqa.selenium.WebElement> elements)
Create and register a new fluent list from the argument list of WebElements.FluentList<FluentWebElement>
asFluentList(org.openqa.selenium.WebElement... elements)
Create and register a new fluent list from the argument WebElements.<L extends java.util.List<T>,T>
LnewComponentList(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>
LnewComponentList(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 newFluentWebElement
from the givenWebElement
.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 of the provided type.<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 from the argument list of FluentWebElements.FluentList<FluentWebElement>
newFluentList(FluentWebElement... elements)
Create and register a new fluent list from the argument FluentWebElements.-
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.components.ComponentInstantiator
isComponentClass, isComponentListClass, newComponent, newComponentList
-
-
-
-
Method Detail
-
newFluent
public FluentWebElement newFluent(org.openqa.selenium.WebElement element)
Description copied from interface:ComponentInstantiator
Create and register a newFluentWebElement
from the givenWebElement
.- Specified by:
newFluent
in interfaceComponentInstantiator
- Parameters:
element
- wrapped element- Returns:
- new instance of the component
-
newFluentList
public FluentList<FluentWebElement> newFluentList()
Description copied from interface:ComponentInstantiator
Create and register an empty fluent list.- Specified by:
newFluentList
in interfaceComponentInstantiator
- Returns:
- new list of fluent web element
-
asFluentList
public FluentList<FluentWebElement> asFluentList(org.openqa.selenium.WebElement... elements)
Description copied from interface:ComponentInstantiator
Create and register a new fluent list from the argument WebElements.- Specified by:
asFluentList
in interfaceComponentInstantiator
- Parameters:
elements
- list of elements- Returns:
- new list of fluent web element
-
asFluentList
public FluentList<FluentWebElement> asFluentList(java.lang.Iterable<org.openqa.selenium.WebElement> elements)
Description copied from interface:ComponentInstantiator
Create and register a new fluent list from the argument collection of WebElements.- Specified by:
asFluentList
in interfaceComponentInstantiator
- Parameters:
elements
- list of elements- Returns:
- new list of fluent web element
-
asFluentList
public FluentList<FluentWebElement> asFluentList(java.util.List<org.openqa.selenium.WebElement> elements)
Description copied from interface:ComponentInstantiator
Create and register a new fluent list from the argument list of WebElements.- Specified by:
asFluentList
in interfaceComponentInstantiator
- Parameters:
elements
- list of elements- Returns:
- new list of fluent web element
-
newFluentList
public FluentList<FluentWebElement> newFluentList(FluentWebElement... elements)
Description copied from interface:ComponentInstantiator
Create and register a new fluent list from the argument FluentWebElements.- Specified by:
newFluentList
in interfaceComponentInstantiator
- Parameters:
elements
- list of elements- Returns:
- new list of fluent web element
-
newFluentList
public FluentList<FluentWebElement> newFluentList(java.util.List<FluentWebElement> elements)
Description copied from interface:ComponentInstantiator
Create and register a new fluent list from the argument list of FluentWebElements.- Specified by:
newFluentList
in interfaceComponentInstantiator
- Parameters:
elements
- list of elements- Returns:
- new list of fluent web element
-
newFluentList
public <T extends FluentWebElement> FluentList<T> newFluentList(java.lang.Class<T> componentClass)
Description copied from interface:ComponentInstantiator
Create and register an empty fluent list of the provided type.- Specified by:
newFluentList
in interfaceComponentInstantiator
- Type Parameters:
T
- type of the component- Parameters:
componentClass
- class of the component- Returns:
- new list of fluent web element
-
newFluentList
public <T extends FluentWebElement> FluentList<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 interfaceComponentInstantiator
- Type Parameters:
T
- type of the component- Parameters:
componentClass
- class of the componentelements
- list of elements- Returns:
- new list of fluent web element
-
newFluentList
public <T extends FluentWebElement> FluentList<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 interfaceComponentInstantiator
- Type Parameters:
T
- type of the component- Parameters:
componentClass
- class of the componentelements
- list of elements- Returns:
- new list of fluent web element
-
asFluentList
public <T extends FluentWebElement> FluentList<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 interfaceComponentInstantiator
- Type Parameters:
T
- type of the component- Parameters:
componentClass
- class of the componentelements
- list of elements- Returns:
- new list of fluent web element
-
asFluentList
public <T extends FluentWebElement> FluentList<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 interfaceComponentInstantiator
- Type Parameters:
T
- type of the component- Parameters:
componentClass
- class of the componentelements
- list of elements- Returns:
- new list of fluent web element
-
asFluentList
public <T extends FluentWebElement> FluentList<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 interfaceComponentInstantiator
- Type Parameters:
T
- type of the component- Parameters:
componentClass
- class of the componentelements
- 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 interfaceComponentInstantiator
- Type Parameters:
L
- type of the listT
- type of the component- Parameters:
listClass
- type of the listcomponentClass
- 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 interfaceComponentInstantiator
- 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 interfaceComponentInstantiator
- Type Parameters:
T
- type of the component- Parameters:
componentClass
- type of the componentelements
- 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 interfaceComponentInstantiator
- Type Parameters:
T
- type of the component- Parameters:
componentClass
- type of the componentelements
- 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 interfaceComponentInstantiator
- Type Parameters:
T
- type of the component- Parameters:
componentClass
- type of the componentelements
- 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 interfaceComponentInstantiator
- Type Parameters:
T
- type of the component- Parameters:
componentClass
- type of the componentcomponentsList
- 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 interfaceComponentInstantiator
- Type Parameters:
T
- type of the component- Parameters:
componentClass
- type of the componentcomponentsList
- 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 interfaceComponentInstantiator
- Type Parameters:
L
- type of the listT
- type of the component- Parameters:
listClass
- type of the listcomponentClass
- type of the componentcomponentsList
- 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 interfaceComponentInstantiator
- Type Parameters:
L
- type of the listT
- type of the component- Parameters:
listClass
- type of the listcomponentClass
- type of the componentelements
- 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 interfaceComponentInstantiator
- Type Parameters:
L
- type of the listT
- type of the component- Parameters:
listClass
- type of the listcomponentClass
- type of the componentelements
- 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 interfaceComponentInstantiator
- Type Parameters:
L
- type of the listT
- type of the component- Parameters:
listClass
- type of the listcomponentClass
- type of the componentelements
- elements- Returns:
- new list of components
-
-