Enum Class BrowserType

java.lang.Object
java.lang.Enum<BrowserType>
org.shakespeareframework.selenium.BrowserType
All Implemented Interfaces:
Serializable, Comparable<BrowserType>, Constable

public enum BrowserType extends Enum<BrowserType>
Enum of all browser types which are supported by WebDriverSupplier.
  • Enum Constant Details

    • CHROME

      public static final BrowserType CHROME
      Google Chrome
    • FIREFOX

      public static final BrowserType FIREFOX
      Mozilla Firefox
    • EDGE

      public static final BrowserType EDGE
      Microsoft Edge
    • IEXPLORER

      public static final BrowserType IEXPLORER
      Microsoft Internet Explorer
    • SAFARI

      public static final BrowserType SAFARI
      Apple Safari
  • Method Details

    • values

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

      public static BrowserType 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.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • forName

      public static BrowserType forName(String string)
      Looks up the named BrowserType, ignoring case.
      Parameters:
      string - the desired browser type as String
      Returns:
      the desired BrowserType if known
      Throws:
      IllegalArgumentException - if the given string does not equal any Enum.name()
    • getWebDriverClass

      public Class<? extends org.openqa.selenium.WebDriver> getWebDriverClass()
      Returns the WebDriver Class required to automate the BrowserType.
      Returns:
      the WebDriver Class required to automate the BrowserType
    • getBaseCapabilities

      public org.openqa.selenium.Capabilities getBaseCapabilities()
      Returns the base Capabilities of the BrowserType.
      Returns:
      the base Capabilities of the BrowserType