Interface BrowserManager
-
- All Implemented Interfaces:
-
java.lang.AutoCloseable
public interface BrowserManager implements AutoCloseable
-
-
Method Summary
Modifier and Type Method Description abstract Browserlaunch(BrowserProfileMode profileMode)abstract Browserlaunch(BrowserId browserId, BrowserSettings settings)Launch the system default browser, the system default browser is your daily used browser. 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 BrowserlaunchRandomTempBrowser()Launch a random temporary browser, the browser's user data dir is a random temporary dir. abstract BrowserfindBrowserOrNull(BrowserId browserId)abstract UnitcloseBrowser(BrowserId browserId)abstract UnitcloseBrowser(Browser browser)abstract UnitcloseDriver(WebDriver driver)abstract BrowserFactorygetBrowserFactory()abstract BrowserSettingsgetSettings()abstract Map<BrowserId, Browser>getBrowsers()-
-
Method Detail
-
launch
abstract Browser launch(BrowserId browserId, BrowserSettings settings)
Launch the system default browser, the system default browser is your daily used browser.
-
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.
-
launchRandomTempBrowser
abstract Browser launchRandomTempBrowser()
Launch a random temporary browser, the browser's user data dir is a random temporary dir.
-
findBrowserOrNull
abstract Browser findBrowserOrNull(BrowserId browserId)
-
closeBrowser
abstract Unit closeBrowser(BrowserId browserId)
-
closeBrowser
abstract Unit closeBrowser(Browser browser)
-
closeDriver
abstract Unit closeDriver(WebDriver driver)
-
getBrowserFactory
abstract BrowserFactory getBrowserFactory()
-
getSettings
abstract BrowserSettings getSettings()
-
getBrowsers
abstract Map<BrowserId, Browser> getBrowsers()
-
-
-
-