public class DefaultHookChainBuilder extends Object implements HookChainBuilder
| Constructor and Description |
|---|
DefaultHookChainBuilder(FluentControl control,
ComponentInstantiator instantiator)
Creates a new default hook chain builder
|
| Modifier and Type | Method and Description |
|---|---|
List<FluentHook> |
build(com.google.common.base.Supplier<org.openqa.selenium.WebElement> elementSupplier,
com.google.common.base.Supplier<org.openqa.selenium.support.pagefactory.ElementLocator> locator,
com.google.common.base.Supplier<String> toStringSupplier,
List<HookDefinition<?>> hooks)
Build the hook chain.
|
protected FluentHook<?> |
newInstance(Class<? extends FluentHook<?>> hookClass,
FluentControl fluentControl,
ComponentInstantiator instantiator,
com.google.common.base.Supplier<org.openqa.selenium.WebElement> elementSupplier,
com.google.common.base.Supplier<org.openqa.selenium.support.pagefactory.ElementLocator> locatorSupplier,
com.google.common.base.Supplier<String> toStringSupplier,
Object options)
Creates a new hook instance.
|
public DefaultHookChainBuilder(FluentControl control, ComponentInstantiator instantiator)
control - control interfaceinstantiator - component instantiatorpublic List<FluentHook> build(com.google.common.base.Supplier<org.openqa.selenium.WebElement> elementSupplier, com.google.common.base.Supplier<org.openqa.selenium.support.pagefactory.ElementLocator> locator, com.google.common.base.Supplier<String> toStringSupplier, List<HookDefinition<?>> hooks)
HookChainBuilderbuild in interface HookChainBuilderelementSupplier - element supplierlocator - element locator suppliertoStringSupplier - element toString supplierhooks - list of hook definitionsprotected FluentHook<?> newInstance(Class<? extends FluentHook<?>> hookClass, FluentControl fluentControl, ComponentInstantiator instantiator, com.google.common.base.Supplier<org.openqa.selenium.WebElement> elementSupplier, com.google.common.base.Supplier<org.openqa.selenium.support.pagefactory.ElementLocator> locatorSupplier, com.google.common.base.Supplier<String> toStringSupplier, Object options) throws InvocationTargetException, NoSuchMethodException, InstantiationException, IllegalAccessException
hookClass - hook classfluentControl - control interfaceinstantiator - component instantiatorelementSupplier - element supplierlocatorSupplier - element locator suppliertoStringSupplier - element toString supplieroptions - hook optionsNoSuchMethodException - if a matching method is not found.IllegalAccessException - if this Constructor object
is enforcing Java language access control and the underlying
constructor is inaccessible.InstantiationException - if the class that declares the
underlying constructor represents an abstract class.InvocationTargetException - if the underlying constructor
throws an exception.Copyright © 2016 FluentLenium. All Rights Reserved.