Arquillian Drone Extension Support for WebDriver 1.0.0.Final

org.jboss.arquillian.drone.webdriver.configuration
Class TypedWebDriverConfiguration<T extends WebDriverConfigurationType>

java.lang.Object
  extended by org.jboss.arquillian.drone.webdriver.configuration.TypedWebDriverConfiguration<T>
All Implemented Interfaces:
DroneConfiguration<TypedWebDriverConfiguration<T>>, AndroidDriverConfiguration, ChromeDriverConfiguration, CommonWebDriverConfiguration, FirefoxDriverConfiguration, HtmlUnitDriverConfiguration, InternetExplorerDriverConfiguration, IPhoneDriverConfiguration, WebDriverConfiguration, WebDriverConfigurationType

public class TypedWebDriverConfiguration<T extends WebDriverConfigurationType>
extends Object
implements DroneConfiguration<TypedWebDriverConfiguration<T>>, AndroidDriverConfiguration, ChromeDriverConfiguration, FirefoxDriverConfiguration, HtmlUnitDriverConfiguration, InternetExplorerDriverConfiguration, IPhoneDriverConfiguration, WebDriverConfiguration

Configuration shared among all WebDriver implementations. This means that all configurations maps to the same namespace, however user decides which configuration is chosen by requesting a type of driver in the test. Safely retrieves only the value compatible with current browser type.

Author:
ConfigurationMapper

Field Summary
protected  String applicationName
           
protected  String applicationVersion
           
protected  float browserVersionNumeric
           
protected  String chromeBinary
           
protected  String chromeDriverBinary
           
protected  String chromeSwitches
           
static String CONFIGURATION_NAME
           
protected  String firefoxBinary
           
protected  String firefoxProfile
           
protected  int iePort
           
protected  String implementationClass
           
protected  String remoteAddress
           
protected  Class<T> type
           
protected  boolean useJavaScript
           
protected  String userAgent
           
 
Constructor Summary
TypedWebDriverConfiguration(Class<T> type, String implementationClass)
           
 
Method Summary
 TypedWebDriverConfiguration<T> configure(org.jboss.arquillian.config.descriptor.api.ArquillianDescriptor descriptor, Class<? extends Annotation> qualifier)
           
 String getApplicationName()
           
 String getApplicationVersion()
           
 float getBrowserVersionNumeric()
           
 String getChromeBinary()
           
 String getChromeDriverBinary()
           
 String getChromeSwitches()
           
 String getConfigurationName()
           
 String getFirefoxBinary()
           
 String getFirefoxProfile()
           
 int getIePort()
           
 String getImplementationClass()
          Gets class which points to the implementation of the driver
 String getRemoteAddress()
           
 String getUserAgent()
           
 boolean isUseJavaScript()
           
 void setApplicationName(String applicationName)
           
 void setApplicationVersion(String applicationVersion)
           
 void setBrowserVersionNumeric(float browserVersionNumeric)
           
 void setChromeBinary(String chromeBinary)
           
 void setChromeDriverBinary(String chromeDriverBinary)
           
 void setChromeSwitches(String chromeSwitches)
           
 void setFirefoxBinary(String firefoxBinary)
           
 void setFirefoxProfile(String firefoxProfile)
           
 void setIePort(int iePort)
           
 void setImplementationClass(String implementationClass)
          Sets class which points to the implementation of the driver
 void setRemoteAddress(String remoteAddress)
           
 void setUseJavaScript(boolean useJavaScript)
           
 void setUserAgent(String userAgent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIGURATION_NAME

public static final String CONFIGURATION_NAME
See Also:
Constant Field Values

type

protected Class<T extends WebDriverConfigurationType> type

implementationClass

protected String implementationClass

iePort

protected int iePort

applicationName

protected String applicationName

applicationVersion

protected String applicationVersion

userAgent

protected String userAgent

firefoxProfile

protected String firefoxProfile

firefoxBinary

protected String firefoxBinary

chromeBinary

protected String chromeBinary

chromeDriverBinary

protected String chromeDriverBinary

chromeSwitches

protected String chromeSwitches

remoteAddress

protected String remoteAddress

browserVersionNumeric

protected float browserVersionNumeric

useJavaScript

protected boolean useJavaScript
Constructor Detail

TypedWebDriverConfiguration

public TypedWebDriverConfiguration(Class<T> type,
                                   String implementationClass)
Method Detail

getImplementationClass

public String getImplementationClass()
Description copied from interface: CommonWebDriverConfiguration
Gets class which points to the implementation of the driver

Specified by:
getImplementationClass in interface CommonWebDriverConfiguration
Returns:
the class

setImplementationClass

public void setImplementationClass(String implementationClass)
Description copied from interface: CommonWebDriverConfiguration
Sets class which points to the implementation of the driver

Specified by:
setImplementationClass in interface CommonWebDriverConfiguration
Parameters:
implementationClass - the class which implements the driver

setIePort

public void setIePort(int iePort)
Specified by:
setIePort in interface InternetExplorerDriverConfiguration
Parameters:
iePort - the iePort to set

getIePort

public int getIePort()
Specified by:
getIePort in interface InternetExplorerDriverConfiguration
Returns:
the iePort

getApplicationName

public String getApplicationName()
Specified by:
getApplicationName in interface HtmlUnitDriverConfiguration
Returns:
the applicationName

setApplicationName

public void setApplicationName(String applicationName)
Specified by:
setApplicationName in interface HtmlUnitDriverConfiguration
Parameters:
applicationName - the applicationName to set

getApplicationVersion

public String getApplicationVersion()
Specified by:
getApplicationVersion in interface HtmlUnitDriverConfiguration
Returns:
the applicationVersion

setApplicationVersion

public void setApplicationVersion(String applicationVersion)
Specified by:
setApplicationVersion in interface HtmlUnitDriverConfiguration
Parameters:
applicationVersion - the applicationVersion to set

getUserAgent

public String getUserAgent()
Specified by:
getUserAgent in interface HtmlUnitDriverConfiguration
Returns:
the userAgent

setUserAgent

public void setUserAgent(String userAgent)
Specified by:
setUserAgent in interface HtmlUnitDriverConfiguration
Parameters:
userAgent - the userAgent to set

getBrowserVersionNumeric

public float getBrowserVersionNumeric()
Specified by:
getBrowserVersionNumeric in interface HtmlUnitDriverConfiguration
Returns:
the browserVersionNumeric

setBrowserVersionNumeric

public void setBrowserVersionNumeric(float browserVersionNumeric)
Specified by:
setBrowserVersionNumeric in interface HtmlUnitDriverConfiguration
Parameters:
browserVersionNumeric - the browserVersionNumeric to set

isUseJavaScript

public boolean isUseJavaScript()
Specified by:
isUseJavaScript in interface HtmlUnitDriverConfiguration
Returns:
the useJavaScript

setUseJavaScript

public void setUseJavaScript(boolean useJavaScript)
Specified by:
setUseJavaScript in interface HtmlUnitDriverConfiguration
Parameters:
useJavaScript - the useJavaScript to set

getFirefoxProfile

public String getFirefoxProfile()
Specified by:
getFirefoxProfile in interface FirefoxDriverConfiguration
Returns:
the firefoxProfile

setFirefoxProfile

public void setFirefoxProfile(String firefoxProfile)
Specified by:
setFirefoxProfile in interface FirefoxDriverConfiguration
Parameters:
firefoxProfile - the firefoxProfile to set

getFirefoxBinary

public String getFirefoxBinary()
Specified by:
getFirefoxBinary in interface FirefoxDriverConfiguration
Returns:
the firefoxBinary

setFirefoxBinary

public void setFirefoxBinary(String firefoxBinary)
Specified by:
setFirefoxBinary in interface FirefoxDriverConfiguration
Parameters:
firefoxBinary - the firefoxBinary to set

getChromeBinary

public String getChromeBinary()
Specified by:
getChromeBinary in interface ChromeDriverConfiguration
Returns:
the chromeBinary

setChromeBinary

public void setChromeBinary(String chromeBinary)
Specified by:
setChromeBinary in interface ChromeDriverConfiguration
Parameters:
chromeBinary - the chromeBinary to set

setChromeDriverBinary

public void setChromeDriverBinary(String chromeDriverBinary)
Specified by:
setChromeDriverBinary in interface ChromeDriverConfiguration
Parameters:
chromeDriverBinary - the chromeDriverBinary to set

getChromeDriverBinary

public String getChromeDriverBinary()
Specified by:
getChromeDriverBinary in interface ChromeDriverConfiguration
Returns:
the chromeDriverBinary

setChromeSwitches

public void setChromeSwitches(String chromeSwitches)
Specified by:
setChromeSwitches in interface ChromeDriverConfiguration
Parameters:
chromeSwitches - the chromeSwitches to set

getChromeSwitches

public String getChromeSwitches()
Specified by:
getChromeSwitches in interface ChromeDriverConfiguration
Returns:
the chromeSwitches

setRemoteAddress

public void setRemoteAddress(String remoteAddress)
Specified by:
setRemoteAddress in interface AndroidDriverConfiguration
Specified by:
setRemoteAddress in interface IPhoneDriverConfiguration
Parameters:
remoteAddress - the remoteAddress to set

getRemoteAddress

public String getRemoteAddress()
Specified by:
getRemoteAddress in interface AndroidDriverConfiguration
Specified by:
getRemoteAddress in interface IPhoneDriverConfiguration
Returns:
the remoteAddress

getConfigurationName

public String getConfigurationName()
Specified by:
getConfigurationName in interface DroneConfiguration<TypedWebDriverConfiguration<T extends WebDriverConfigurationType>>

configure

public TypedWebDriverConfiguration<T> configure(org.jboss.arquillian.config.descriptor.api.ArquillianDescriptor descriptor,
                                                Class<? extends Annotation> qualifier)
Specified by:
configure in interface DroneConfiguration<TypedWebDriverConfiguration<T extends WebDriverConfigurationType>>

Arquillian Drone Extension Support for WebDriver 1.0.0.Final

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.