Enum Class Browser

All Implemented Interfaces:
Serializable, Comparable<Browser>, java.lang.constant.Constable

public enum Browser extends Enum<Browser>
You can use this enum to choose the Chrome version that you want to use. This option is available for only the Windows platform and ignored for GNU/Linux and macOS.
  • Enum Constant Details

    • Any

      public static final Browser Any
      cdp4j search the location of Chrome and launches the found browser. cdp4j uses the below list for the search order: 1. Chrome Dev 2. Chrome Canary 3. Chrome 4. Microsoft Edge (on Windows)
    • Chrome

      public static final Browser Chrome
    • ChromeCanary

      public static final Browser ChromeCanary
    • ChromeDev

      public static final Browser ChromeDev
    • MicrosoftEdge

      public static final Browser MicrosoftEdge
  • Method Details

    • values

      public static Browser[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Browser valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      name - the name of the enum constant to be returned.
      the enum constant with the specified name
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null