Class BrowserManager

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final Map<BrowserId, Browser> browsers
      private final ImmutableConfig conf
    • Constructor Summary

      Constructors 
      Constructor Description
      BrowserManager(ImmutableConfig conf)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

      • BrowserManager

        BrowserManager(ImmutableConfig conf)
    • Method Detail

      • getBrowsers

         final Map<BrowserId, Browser> getBrowsers()

        The active browsers

      • getConf

         final ImmutableConfig getConf()
      • launch

         final Browser launch(BrowserId browserId, WebDriverSettings driverSettings, Map<String, Object> capabilities)

        Launch a browser. If the browser with the id is already launched, return the existing one.

      • findBrowser

        @Synchronized() final Browser findBrowser(BrowserId browserId)

        Find an existing browser.

      • closeBrowser

        @Synchronized() final Unit closeBrowser(BrowserId browserId)

        Close a browser.

      • closeBrowser

        @Synchronized() final Unit closeBrowser(Browser browser)
      • closeDriver

        @Synchronized() final Unit closeDriver(WebDriver driver)
      • destroyZombieBrowsersForcibly

        @Synchronized() final Unit destroyZombieBrowsersForcibly()

        Destroy the zombie browsers forcibly, kill the associated browser processes, release all allocated resources, regardless of whether the browser is closed or not.

      • close

        @Synchronized() Unit close()