Interface WebDriverFactory

All Superinterfaces:
Factory
All Known Implementing Classes:
DefaultWebDriverFactories.ChromeWebDriverFactory, DefaultWebDriverFactories.EdgeWebDriverFactory, DefaultWebDriverFactories.FirefoxWebDriverFactory, DefaultWebDriverFactories.HtmlUnitWebDriverFactory, DefaultWebDriverFactories.InternetExplorerWebDriverFactory, DefaultWebDriverFactories.OperaWebDriverFactory, DefaultWebDriverFactories.RemoteWebDriverFactory, DefaultWebDriverFactories.SafariWebDriverFactory, ReflectiveWebDriverFactory

@IndexSubclasses public interface WebDriverFactory extends Factory
Factory of WebDriver, that can be registered in WebDrivers registry.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.openqa.selenium.WebDriver
    newWebDriver (org.openqa.selenium.Capabilities desiredCapabilities, ConfigurationProperties configuration)
    Creates a new instance of WebDriver.
  • Method Details

    • newWebDriver

      org.openqa.selenium.WebDriver newWebDriver (org.openqa.selenium.Capabilities desiredCapabilities, ConfigurationProperties configuration)
      Creates a new instance of WebDriver.
      Parameters:
      desiredCapabilities - Desired capabilities for the web driver
      configuration - Configuration
      Returns:
      new instance of web driver