Package io.fluentlenium.configuration
Class DefaultWebDriverFactories.ChromeWebDriverFactory
java.lang.Object
io.fluentlenium.configuration.ReflectiveWebDriverFactory
io.fluentlenium.configuration.DefaultWebDriverFactories.ChromeWebDriverFactory
- All Implemented Interfaces:
Factory,FactoryNames,ReflectiveFactory,WebDriverFactory
- Enclosing class:
DefaultWebDriverFactories
public static class DefaultWebDriverFactories.ChromeWebDriverFactory
extends ReflectiveWebDriverFactory
Chrome 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.WebDrivernewInstance(Class<? extends org.openqa.selenium.WebDriver> webDriverClass, ConfigurationProperties configuration, Object... args) Creates a new instance of web driver.Methods inherited from class io.fluentlenium.configuration.ReflectiveWebDriverFactory
getNames, getWebDriverClass, isAvailable, newDefaultCapabilities, newWebDriver
-
Constructor Details
-
ChromeWebDriverFactory
public ChromeWebDriverFactory()Creates a new chrome 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: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:
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 thisConstructorobject is enforcing Java language access control and the underlying constructor is inaccessible.
-