org.aludratest.service.gui.web.selenium.selenium2
Class Selenium2Driver

java.lang.Object
  extended by org.aludratest.service.gui.web.selenium.selenium2.Selenium2Driver

public class Selenium2Driver
extends Object

Enumerates the available web drivers for Selenium 2.

Author:
Volker Bergmann

Field Summary
static Selenium2Driver CHROME
          Google Chrome driver
static Selenium2Driver FIREFOX
          Firefox driver
static Selenium2Driver HTML_UNIT
          HTMLUnit driver
static Selenium2Driver INTERNET_EXPLORER
          Internet Explorer driver
static Selenium2Driver PHANTOMJS
          PhantomJS driver
static Selenium2Driver SAFARI
          Safari driver
 
Method Summary
 String getBrowserName()
           
 org.openqa.selenium.WebDriver newLocalDriver()
           
 org.openqa.selenium.WebDriver newRemoteDriver(URL url, String[] arguments)
           
static Selenium2Driver valueOf(String driverName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FIREFOX

public static Selenium2Driver FIREFOX
Firefox driver


INTERNET_EXPLORER

public static Selenium2Driver INTERNET_EXPLORER
Internet Explorer driver


HTML_UNIT

public static Selenium2Driver HTML_UNIT
HTMLUnit driver


CHROME

public static Selenium2Driver CHROME
Google Chrome driver


SAFARI

public static Selenium2Driver SAFARI
Safari driver


PHANTOMJS

public static Selenium2Driver PHANTOMJS
PhantomJS driver

Method Detail

getBrowserName

public String getBrowserName()
Returns:
the name of the related browser

newLocalDriver

public org.openqa.selenium.WebDriver newLocalDriver()
Returns:
a freshly created instance of the related WebDriver class

newRemoteDriver

public org.openqa.selenium.WebDriver newRemoteDriver(URL url,
                                                     String[] arguments)
Parameters:
url - the URL for which to create a WebDriver instance.
arguments - Additional arguments to include for the WebDriver instance, or an empty array.
Returns:
a freshly created instance of the related WebDriver class

valueOf

public static Selenium2Driver valueOf(String driverName)
Parameters:
driverName - the name of the driver
Returns:
the driver instance associated with the driverName
Throws:
IllegalArgumentException - if no driver is configured with this name


Copyright © 2015 aludratest.org. All rights reserved.