Interface BrowserFactory
-
- All Implemented Interfaces:
public interface BrowserFactoryA factory to create browser instances.
-
-
Method Summary
Modifier and Type Method Description abstract Browserconnect(BrowserType browserType, Integer port, BrowserSettings settings)Connect to a browser instance, the browser instance should be open with Chrome devtools open. abstract Browserlaunch(BrowserProfileMode profileMode)abstract Browserlaunch(BrowserId browserId)Launch the system default browser, the system default browser is your daily used browser. abstract Browserlaunch(BrowserId browserId, BrowserSettings settings)Launch the system default browser, the system default browser is your daily used browser. abstract Browserlaunch(BrowserId browserId, LauncherOptions launcherOptions, ChromeOptions launchOptions)Launch a browser with the given browser id, the browser id is used to identify the browser instance. abstract BrowserlaunchSystemDefaultBrowser()Launch the system default browser, the system default browser is your daily used browser. abstract BrowserlaunchDefaultBrowser()Launch the default browser, notice, the default browser is not the one you used daily. abstract BrowserlaunchPrototypeBrowser()Launch the prototype browser, the prototype browser is a browser instance with default settings. abstract BrowserlaunchNextSequentialBrowser()Launch the next sequential browser, the browser's user data dir rotates between a group of dirs. abstract BrowserlaunchRandomTempBrowser()Launch a random temporary browser, the browser's user data dir is a random temporary dir. abstract ImmutableConfiggetConf()abstract BrowserSettingsgetSettings()-
-
Method Detail
-
connect
abstract Browser connect(BrowserType browserType, Integer port, BrowserSettings settings)
Connect to a browser instance, the browser instance should be open with Chrome devtools open.
-
launch
abstract Browser launch(BrowserId browserId)
Launch the system default browser, the system default browser is your daily used browser.
-
launch
abstract Browser launch(BrowserId browserId, BrowserSettings settings)
Launch the system default browser, the system default browser is your daily used browser.
-
launch
abstract Browser launch(BrowserId browserId, LauncherOptions launcherOptions, ChromeOptions launchOptions)
Launch a browser with the given browser id, the browser id is used to identify the browser instance.
-
launchSystemDefaultBrowser
abstract Browser launchSystemDefaultBrowser()
Launch the system default browser, the system default browser is your daily used browser.
-
launchDefaultBrowser
abstract Browser launchDefaultBrowser()
Launch the default browser, notice, the default browser is not the one you used daily.
-
launchPrototypeBrowser
abstract Browser launchPrototypeBrowser()
Launch the prototype browser, the prototype browser is a browser instance with default settings.
-
launchNextSequentialBrowser
abstract Browser launchNextSequentialBrowser()
Launch the next sequential browser, the browser's user data dir rotates between a group of dirs.
-
launchRandomTempBrowser
abstract Browser launchRandomTempBrowser()
Launch a random temporary browser, the browser's user data dir is a random temporary dir.
-
getConf
abstract ImmutableConfig getConf()
-
getSettings
abstract BrowserSettings getSettings()
-
-
-
-