Open topic with navigation

com.hp.lft.sdk.web

## Enum BrowserType

- java.lang.Object
- - java.lang.Enum<BrowserType>
  - - com.hp.lft.sdk.web.BrowserType

- All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<BrowserType>

      public enum BrowserType
      extends java.lang.Enum<BrowserType>

  Supported browser types.

- - ### Enum Constant Summary

    Enum Constant and Description
    `CHROME` Google Chrome
    `EDGE` Microsoft Edge
    `FIREFOX` Mozilla Firefox
    `HEADLESS_CHROME` Headless Chrome
    `INTERNET_EXPLORER` Microsoft Internet Explorer
    `MOBILE_CENTER_BROWSER` The Mobile Center web browser
    `PHANTOM_JS` The PhantomJS headless browser.
    `SAFARI` Safari browser on mobile devices

  - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `java.lang.String` | `getBrowserTypeString()`
    `static BrowserType` | `valueOf(java.lang.String name)` Returns the enum constant of this type with the specified name.
    `static BrowserType[]` | `values()` Returns an array containing the constants of this enum type, in the order they are declared.

    - ### Methods inherited from class java.lang.Enum

      `clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf`

    - ### Methods inherited from class java.lang.Object

      `getClass, notify, notifyAll, wait, wait, wait`

- - ### Enum Constant Detail

    - #### INTERNET_EXPLORER

          public static final BrowserType INTERNET_EXPLORER

      Microsoft Internet Explorer

    - #### FIREFOX

          public static final BrowserType FIREFOX

      Mozilla Firefox

    - #### CHROME

          public static final BrowserType CHROME

      Google Chrome

    - #### EDGE

          public static final BrowserType EDGE

      Microsoft Edge

    - #### SAFARI

          public static final BrowserType SAFARI

      Safari browser on mobile devices

    - #### MOBILE_CENTER_BROWSER

          public static final BrowserType MOBILE_CENTER_BROWSER

      The Mobile Center web browser

    - #### PHANTOM_JS

          public static final BrowserType PHANTOM_JS

      The PhantomJS headless browser.
      Note: to use PhantomJS you must install it in a specific location.
      For details, see https://admhelp.microfocus.com/leanft/en/latest/HelpCenter/Content/HowTo/WebApps.htm#hp-minitoc-item-4

    - #### HEADLESS_CHROME

          public static final BrowserType HEADLESS_CHROME

      Headless Chrome

  - ### Method Detail

    - #### values

          public static BrowserType[] values()

      Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:

          for (BrowserType c : BrowserType.values())
              System.out.println(c);

      Returns:
        an array containing the constants of this enum type, in the order they are declared

    - #### valueOf

          public static BrowserType valueOf(java.lang.String name)

      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
        `name` - the name of the enum constant to be returned.
      Returns:
        the enum constant with the specified name
      Throws:
        `java.lang.IllegalArgumentException` - if this enum type has no constant with the specified name
        `java.lang.NullPointerException` - if the argument is null

    - #### getBrowserTypeString

          public java.lang.String getBrowserTypeString()