Package org.fluentlenium.configuration
Class DefaultWebDriverFactories.RemoteWebDriverFactory
- java.lang.Object
-
- org.fluentlenium.configuration.ReflectiveWebDriverFactory
-
- org.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 org.fluentlenium.configuration.ReflectiveWebDriverFactory
args, available, name, webDriverClass, webDriverClassName
-
-
Constructor Summary
Constructors Constructor Description RemoteWebDriverFactory()Creates a new remote WebDriver factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.openqa.selenium.WebDrivernewInstance(java.lang.Class<? extends org.openqa.selenium.WebDriver> webDriverClass, ConfigurationProperties configuration, java.lang.Object... args)Creates a new instance of web driver.protected org.openqa.selenium.WebDrivernewRemoteWebDriver(java.lang.Object... args)Creates a new remote WebDriver instance-
Methods inherited from class org.fluentlenium.configuration.ReflectiveWebDriverFactory
getNames, getWebDriverClass, isAvailable, newDefaultCapabilities, newWebDriver
-
-
-
-
Method Detail
-
newInstance
protected org.openqa.selenium.WebDriver newInstance(java.lang.Class<? extends org.openqa.selenium.WebDriver> webDriverClass, ConfigurationProperties configuration, java.lang.Object... args) throws java.lang.reflect.InvocationTargetException, java.lang.NoSuchMethodException, java.lang.InstantiationException, java.lang.IllegalAccessExceptionDescription copied from class:ReflectiveWebDriverFactoryCreates a new instance of web driver.- Overrides:
newInstancein classReflectiveWebDriverFactory- Parameters:
webDriverClass- web driver classconfiguration- configurationargs- web driver class constructor arguments- Returns:
- new web driver instance
- Throws:
java.lang.reflect.InvocationTargetException- if the underlying constructor throws an exception.java.lang.NoSuchMethodException- if a matching method is not found.java.lang.InstantiationException- if the class that declares the underlying constructor represents an abstract class.java.lang.IllegalAccessException- if thisConstructorobject is enforcing Java language access control and the underlying constructor is inaccessible.
-
newRemoteWebDriver
protected org.openqa.selenium.WebDriver newRemoteWebDriver(java.lang.Object... args) throws java.lang.NoSuchMethodException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, java.lang.InstantiationExceptionCreates a new remote WebDriver instance- Parameters:
args- WebDriver constructor arguments- Returns:
- new remote WebDriver instance
- Throws:
java.lang.NoSuchMethodException- if a matching method is not found.java.lang.IllegalAccessException- if thisConstructorobject is enforcing Java language access control and the underlying constructor is inaccessible.java.lang.InstantiationException- if the class that declares the underlying constructor represents an abstract class.java.lang.reflect.InvocationTargetException- if the underlying constructor throws an exception.
-
-