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.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>
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.FluentWebElementnewFluent(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
-
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:ComponentInstantiatorCreate and register a new fluent element from the given element.- Specified by:
newFluentin interfaceComponentInstantiator- Parameters:
element- wrapped element- Returns:
- new instance of the component
-
newFluentList
public FluentList<FluentWebElement> newFluentList()
Description copied from interface:ComponentInstantiatorcreate and register an empty fluent list.- Specified by:
newFluentListin interfaceComponentInstantiator- Returns:
- new list of fluent web element
-
asFluentList
public FluentList<FluentWebElement> asFluentList(org.openqa.selenium.WebElement... elements)
Description copied from interface:ComponentInstantiatorcreate and register a new fluent list.- Specified by:
asFluentListin 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:ComponentInstantiatorcreate and register a new fluent list.- Specified by:
asFluentListin 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:ComponentInstantiatorcreate and register a new fluent list.- Specified by:
asFluentListin interfaceComponentInstantiator- Parameters:
elements- list of elements- Returns:
- new list of fluent web element
-
newFluentList
public FluentList<FluentWebElement> newFluentList(FluentWebElement... elements)
Description copied from interface:ComponentInstantiatorcreate and register a new fluent list.- Specified by:
newFluentListin 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:ComponentInstantiatorcreate and register a new fluent list.- Specified by:
newFluentListin 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:ComponentInstantiatorcreate and register an empty fluent list.- Specified by:
newFluentListin 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:ComponentInstantiatorcreate and register a new fluent list.- Specified by:
newFluentListin 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:ComponentInstantiatorcreate and register a new fluent list.- Specified by:
newFluentListin 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:ComponentInstantiatorcreate and register a new fluent list.- Specified by:
asFluentListin 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:ComponentInstantiatorcreate and register a new fluent list.- Specified by:
asFluentListin 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:ComponentInstantiatorcreate and register a new fluent list.- Specified by:
asFluentListin 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:ComponentInstantiatorCreate and register an empty list of component.- Specified by:
newComponentListin 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:ComponentInstantiatorCreate and register an empty list of component.- Specified by:
newComponentListin 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:ComponentInstantiatorCreate and register a new list of component from the given element iterable.- Specified by:
asComponentListin 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:ComponentInstantiatorCreate and register a new list of component from the given element iterable.- Specified by:
asComponentListin 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:ComponentInstantiatorCreate and register a new list of component from the given element iterable.- Specified by:
asComponentListin 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:ComponentInstantiatorCreate and register a new list of component from the given component list.- Specified by:
newComponentListin 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:ComponentInstantiatorCreate and register a new list of component from the given component list.- Specified by:
newComponentListin 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:ComponentInstantiatorCreate and register a new list of component from the given component list.- Specified by:
newComponentListin 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:ComponentInstantiatorCreate and register a new list of component from the given element iterable.- Specified by:
asComponentListin 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:ComponentInstantiatorCreate and register a new list of component from the given element iterable.- Specified by:
asComponentListin 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:ComponentInstantiatorCreate and register a new list of component from the given element iterable.- Specified by:
asComponentListin 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
-
-