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
      UFT Developer 24.2 and later: Microsoft Edge
      UFT Developer 23.4 and earlier: Microsoft Edge Legacy
      EDGE_CHROMIUM
      UFT Developer 24.2 and later: Microsoft Edge (Do not use. Supported for backward compatibility only)
      UFT Developer 23.4 and earlier: Chromium-based Microsoft Edge
      FIREFOX
      Mozilla Firefox
      HEADLESS_CHROME
      Headless Chrome
      INTERNET_EXPLORER
      Microsoft Internet Explorer
      MOBILE_CENTER_BROWSER
      The Digital Lab (UFT Mobile) web browser
      PHANTOM_JS
      The PhantomJS headless browser.
      SAFARI
      Apple Safari
    • Method Summary

      Modifier and TypeMethod and Description
      java.lang.StringgetBrowserTypeString() 
      static BrowserTypevalueOf(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
    • 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()