Class WebDriverFactory
-
- All Implemented Interfaces:
public class WebDriverFactoryA factory to create WebDriver.
-
-
Field Summary
Fields Modifier and Type Field Description private final WebDriverSettingsdriverSettingsprivate final BrowserManagerbrowserManagerprivate final ImmutableConfigimmutableConfig
-
Constructor Summary
Constructors Constructor Description WebDriverFactory(WebDriverSettings driverSettings, BrowserManager browserManager, ImmutableConfig immutableConfig)
-
Method Summary
Modifier and Type Method Description final WebDriverSettingsgetDriverSettings()final BrowserManagergetBrowserManager()final ImmutableConfiggetImmutableConfig()final WebDrivercreate(Boolean start)Create a WebDriver. final WebDrivercreate(VolatileConfig conf, Boolean start)Create a WebDriver. final WebDrivercreate(BrowserId browserId, Integer priority, VolatileConfig conf, Boolean start)Create a WebDriver. final BrowserlaunchBrowser()Launch a browser with the default fingerprint. final BrowserlaunchBrowser(BrowserId browserId, VolatileConfig conf)Launch a browser. final BrowserlaunchTempBrowser()Launch a browser with a random fingerprint. final ChromeDevtoolsBrowserlaunchChrome(BrowserId browserId, Map<String, Object> capabilities)Launch a Chrome browser. -
-
Constructor Detail
-
WebDriverFactory
WebDriverFactory(WebDriverSettings driverSettings, BrowserManager browserManager, ImmutableConfig immutableConfig)
-
-
Method Detail
-
getDriverSettings
final WebDriverSettings getDriverSettings()
-
getBrowserManager
final BrowserManager getBrowserManager()
-
getImmutableConfig
final ImmutableConfig getImmutableConfig()
-
create
final WebDriver create(BrowserId browserId, Integer priority, VolatileConfig conf, Boolean start)
Create a WebDriver.
-
launchBrowser
final Browser launchBrowser()
Launch a browser with the default fingerprint.
-
launchBrowser
final Browser launchBrowser(BrowserId browserId, VolatileConfig conf)
Launch a browser.
-
launchTempBrowser
final Browser launchTempBrowser()
Launch a browser with a random fingerprint.
-
launchChrome
final ChromeDevtoolsBrowser launchChrome(BrowserId browserId, Map<String, Object> capabilities)
Launch a Chrome browser.
-
-
-
-