Class DefaultWebDriverFactories.RemoteWebDriverFactory

    • Constructor Detail

      • RemoteWebDriverFactory

        public RemoteWebDriverFactory()
        Creates a new remote WebDriver factory.
    • 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.IllegalAccessException
        Description copied from class: ReflectiveWebDriverFactory
        Creates a new instance of web driver.
        Overrides:
        newInstance in class ReflectiveWebDriverFactory
        Parameters:
        webDriverClass - web driver class
        configuration - configuration
        args - 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 this Constructor object 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.InstantiationException
        Creates 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 this Constructor object 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.