public class WebDriversRegistryImpl extends AbstractFactoryRegistryImpl<WebDriverFactory,ReflectiveWebDriverFactory>
factories, factoryType, reflectiveFactoryType| Constructor and Description |
|---|
WebDriversRegistryImpl()
Creates a new registry.
|
| Modifier and Type | Method and Description |
|---|---|
protected WebDriverFactory |
getDefault(java.util.List<WebDriverFactory> filteredFactories)
Get the default factory from given list of available factories.
|
protected void |
handleNoFactoryAvailable(java.lang.String name)
Handle the case when no factory is available for given name
|
protected ReflectiveWebDriverFactory |
newReflectiveInstance(java.lang.String name)
Creates an instance of reflective factory.
|
org.openqa.selenium.WebDriver |
newWebDriver(java.lang.String name,
org.openqa.selenium.Capabilities capabilities,
ConfigurationProperties configuration)
Creates a new
WebDriver instance from factory of the given name |
get, getDefault, registerprotected ReflectiveWebDriverFactory newReflectiveInstance(java.lang.String name)
AbstractFactoryRegistryImplnewReflectiveInstance in class AbstractFactoryRegistryImpl<WebDriverFactory,ReflectiveWebDriverFactory>name - name of the instance to create.protected WebDriverFactory getDefault(java.util.List<WebDriverFactory> filteredFactories)
AbstractFactoryRegistryImplgetDefault in class AbstractFactoryRegistryImpl<WebDriverFactory,ReflectiveWebDriverFactory>filteredFactories - available factoriesprotected void handleNoFactoryAvailable(java.lang.String name)
AbstractFactoryRegistryImplhandleNoFactoryAvailable in class AbstractFactoryRegistryImpl<WebDriverFactory,ReflectiveWebDriverFactory>name - request factory namepublic org.openqa.selenium.WebDriver newWebDriver(java.lang.String name,
org.openqa.selenium.Capabilities capabilities,
ConfigurationProperties configuration)
WebDriver instance from factory of the given namename - name of the factory used to create new WebDriver instancecapabilities - Desired capabilities for the WebDriverconfiguration - Configuration for the WebDriverCopyright © 2018 FluentLenium. All Rights Reserved.