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(List<WebDriverFactory> filteredFactories)
Get the default factory from given list of available factories.
|
protected void |
handleNoFactoryAvailable(String name)
Handle the case when no factory is available for given name
|
protected ReflectiveWebDriverFactory |
newReflectiveInstance(String name)
Creates an instance of reflective factory.
|
org.openqa.selenium.WebDriver |
newWebDriver(String name,
org.openqa.selenium.Capabilities capabilities,
ConfigurationProperties configuration)
Creates a new
WebDriver instance from factory of the given name |
get, getDefault, register
protected ReflectiveWebDriverFactory newReflectiveInstance(String name)
AbstractFactoryRegistryImpl
newReflectiveInstance
in class AbstractFactoryRegistryImpl<WebDriverFactory,ReflectiveWebDriverFactory>
name
- name of the instance to create.protected WebDriverFactory getDefault(List<WebDriverFactory> filteredFactories)
AbstractFactoryRegistryImpl
getDefault
in class AbstractFactoryRegistryImpl<WebDriverFactory,ReflectiveWebDriverFactory>
filteredFactories
- available factoriesprotected void handleNoFactoryAvailable(String name)
AbstractFactoryRegistryImpl
handleNoFactoryAvailable
in class AbstractFactoryRegistryImpl<WebDriverFactory,ReflectiveWebDriverFactory>
name
- request factory namepublic org.openqa.selenium.WebDriver newWebDriver(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 © 2016 FluentLenium. All Rights Reserved.