Class WebDriverFactory
-
- All Implemented Interfaces:
public class WebDriverFactoryA factory to create WebDriver.
-
-
Field Summary
Fields Modifier and Type Field Description private final BrowserManagerbrowserManager
-
Constructor Summary
Constructors Constructor Description WebDriverFactory(BrowserManager browserManager, ImmutableConfig config)
-
Method Summary
Modifier and Type Method Description final BrowserManagergetBrowserManager()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 BrowserlaunchTempBrowser()Launch a browser with a random fingerprint. final BrowserlaunchBrowser(BrowserId browserId, MutableConfig conf)Launch a browser. -
-
Constructor Detail
-
WebDriverFactory
WebDriverFactory(BrowserManager browserManager, ImmutableConfig config)
-
-
Method Detail
-
getBrowserManager
final BrowserManager getBrowserManager()
-
create
final WebDriver create(BrowserId browserId, Integer priority, VolatileConfig conf, Boolean start)
Create a WebDriver.
-
launchTempBrowser
final Browser launchTempBrowser()
Launch a browser with a random fingerprint.
-
launchBrowser
final Browser launchBrowser(BrowserId browserId, MutableConfig conf)
Launch a browser.
-
-
-
-