Class SeleniumManager

java.lang.Object
org.openqa.selenium.manager.SeleniumManager

@Beta public class SeleniumManager extends Object
This implementation is still in beta, and may change.

The Selenium-Manager binaries are distributed in a JAR file (org.openqa.selenium:selenium-manager) for the Java binding language. Since these binaries are compressed within these JAR, we need to serialize the proper binary for the current platform (Windows, macOS, or Linux) as an executable file. To implement this we use a singleton pattern, since this way, we have a single instance in the JVM, and we reuse the resulting binary for all the calls to the Selenium Manager singleton during all the Java process lifetime, deleting the binary (stored as a local temporal file) on runtime shutdown.

  • Method Details

    • getInstance

      public static SeleniumManager getInstance()
    • getBinaryPaths

      public SeleniumManagerOutput.Result getBinaryPaths(List<String> arguments)
      Executes Selenium Manager to get the locations of the requested assets
      Parameters:
      arguments - List of command line arguments to send to Selenium Manager binary
      Returns:
      the locations of the assets from Selenium Manager execution