net.thucydides.core.webdriver
Enum SupportedWebDriver

Package class diagram package SupportedWebDriver
java.lang.Object
  extended by java.lang.Enum<SupportedWebDriver>
      extended by net.thucydides.core.webdriver.SupportedWebDriver
All Implemented Interfaces:
Serializable, Comparable<SupportedWebDriver>

public enum SupportedWebDriver
extends Enum<SupportedWebDriver>

The list of supported web drivers. These are the drivers that support screenshots. Note that Internet Explorer does not currenty support screenshots.


Enum Constant Summary
CHROME
          Chrome WebDriver driver.
FIREFOX
          Firefox WebDriver driver.
HTMLUNIT
          HTMLUnit - fast, but no screenshots.
IEXPLORER
          Internet Explorer
OPERA
          Opera - use it with SauceLabs
 
Method Summary
static SupportedWebDriver getDriverTypeFor(String value)
           
 Class<? extends org.openqa.selenium.WebDriver> getWebdriverClass()
           
static String listOfSupportedDrivers()
          HTMLUnit - mainly for testing, as this driver does not support screenshots or much AJAX.
static SupportedWebDriver valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SupportedWebDriver[] 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

FIREFOX

public static final SupportedWebDriver FIREFOX
Firefox WebDriver driver.


CHROME

public static final SupportedWebDriver CHROME
Chrome WebDriver driver.


OPERA

public static final SupportedWebDriver OPERA
Opera - use it with SauceLabs


HTMLUNIT

public static final SupportedWebDriver HTMLUNIT
HTMLUnit - fast, but no screenshots.


IEXPLORER

public static final SupportedWebDriver IEXPLORER
Internet Explorer

Method Detail

values

public static SupportedWebDriver[] 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 (SupportedWebDriver c : SupportedWebDriver.values())
    System.out.println(c);

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

valueOf

public static SupportedWebDriver valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getWebdriverClass

public Class<? extends org.openqa.selenium.WebDriver> getWebdriverClass()

listOfSupportedDrivers

public static String listOfSupportedDrivers()
HTMLUnit - mainly for testing, as this driver does not support screenshots or much AJAX.


getDriverTypeFor

public static SupportedWebDriver getDriverTypeFor(String value)
                                           throws UnsupportedDriverException
Throws:
UnsupportedDriverException


Copyright © 2011-2012 Wakaleo Consulting. All Rights Reserved.