-
- All Implemented Interfaces:
-
java.lang.AutoCloseable
public class BrowserManager implements AutoCloseable
-
-
Constructor Summary
Constructors Constructor Description BrowserManager(ImmutableConfig conf)
-
Method Summary
Modifier and Type Method Description final Map<BrowserId, Browser>getBrowsers()final ImmutableConfiggetConf()final Browserlaunch(BrowserId browserId, WebDriverSettings driverSettings, Map<String, Object> capabilities)final UnitcloseBrowser(BrowserId browserId)final UnitcloseBrowser(Browser browser)final BrowserfindBrowser(BrowserId browserId)final UnitcloseDriver(WebDriver driver)final WebDriverfindLeastValuableDriver()final UnitcloseLeastValuableDriver()final Unitmaintain()Unitclose()-
-
Method Detail
-
getBrowsers
final Map<BrowserId, Browser> getBrowsers()
-
getConf
final ImmutableConfig getConf()
-
launch
final Browser launch(BrowserId browserId, WebDriverSettings driverSettings, Map<String, Object> capabilities)
-
closeBrowser
@Synchronized() final Unit closeBrowser(BrowserId browserId)
-
closeBrowser
@Synchronized() final Unit closeBrowser(Browser browser)
-
findBrowser
@Synchronized() final Browser findBrowser(BrowserId browserId)
-
closeDriver
@Synchronized() final Unit closeDriver(WebDriver driver)
-
findLeastValuableDriver
@Synchronized() final WebDriver findLeastValuableDriver()
-
closeLeastValuableDriver
@Synchronized() final Unit closeLeastValuableDriver()
-
close
@Synchronized() Unit close()
-
-
-
-