Package io.fluentlenium.configuration
Class DefaultWebDriverFactories.RemoteWebDriverFactory
java.lang.Object
io.fluentlenium.configuration.ReflectiveWebDriverFactory
io.fluentlenium.configuration.DefaultWebDriverFactories.RemoteWebDriverFactory
- All Implemented Interfaces:
Factory
,FactoryNames
,ReflectiveFactory
,WebDriverFactory
- Enclosing class:
DefaultWebDriverFactories
public static class DefaultWebDriverFactories.RemoteWebDriverFactory
extends ReflectiveWebDriverFactory
Remote WebDriver factory.
-
Field Summary
Fields inherited from class io.fluentlenium.configuration.ReflectiveWebDriverFactory
args, available, name, webDriverClass, webDriverClassName
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.openqa.selenium.WebDriver
newInstance
(Class<? extends org.openqa.selenium.WebDriver> webDriverClass, ConfigurationProperties configuration, Object... args) Creates a new instance of web driver.protected org.openqa.selenium.WebDriver
newRemoteWebDriver
(Object... args) Creates a new remote WebDriver instanceMethods inherited from class io.fluentlenium.configuration.ReflectiveWebDriverFactory
getNames, getWebDriverClass, isAvailable, newDefaultCapabilities, newWebDriver
-
Constructor Details
-
RemoteWebDriverFactory
public RemoteWebDriverFactory()Creates a new remote WebDriver factory.
-
-
Method Details
-
newInstance
protected org.openqa.selenium.WebDriver newInstance(Class<? extends org.openqa.selenium.WebDriver> webDriverClass, ConfigurationProperties configuration, Object... args) throws InvocationTargetException, NoSuchMethodException, InstantiationException, IllegalAccessException Description copied from class:ReflectiveWebDriverFactory
Creates a new instance of web driver.- Overrides:
newInstance
in classReflectiveWebDriverFactory
- Parameters:
webDriverClass
- web driver classconfiguration
- configurationargs
- web driver class constructor arguments- Returns:
- new web driver instance
- Throws:
InvocationTargetException
- if the underlying constructor throws an exception.NoSuchMethodException
- if a matching method is not found.InstantiationException
- if the class that declares the underlying constructor represents an abstract class.IllegalAccessException
- if thisConstructor
object is enforcing Java language access control and the underlying constructor is inaccessible.
-
newRemoteWebDriver
protected org.openqa.selenium.WebDriver newRemoteWebDriver(Object... args) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException Creates a new remote WebDriver instance- Parameters:
args
- WebDriver constructor arguments- Returns:
- new remote WebDriver instance
- Throws:
NoSuchMethodException
- if a matching method is not found.IllegalAccessException
- if thisConstructor
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.
-