Arquillian Drone Extension Support for Selenium 1.0.0.CR4

org.jboss.arquillian.drone.selenium.configuration
Class SeleniumConfiguration

java.lang.Object
  extended by org.jboss.arquillian.drone.selenium.configuration.SeleniumConfiguration
All Implemented Interfaces:
DroneConfiguration<SeleniumConfiguration>

public class SeleniumConfiguration
extends Object
implements DroneConfiguration<SeleniumConfiguration>

Configuration for Selenium. This configuration can be fetched from Arquillian Descriptor and overridden by System properties.

Author:
ConfigurationMapper

Field Summary
static String CONFIGURATION_NAME
           
 
Constructor Summary
SeleniumConfiguration()
          Creates default Selenium Configuration
 
Method Summary
 SeleniumConfiguration configure(org.jboss.arquillian.config.descriptor.api.ArquillianDescriptor descriptor, Class<? extends Annotation> qualifier)
           
 String getBrowser()
          Identification of the browser for needs of Selenium.
 String getConfigurationName()
           
 String getServerHost()
          The name of machine where Selenium configuration is started/running
 int getServerPort()
          A port where Selenium configuration is started/running
 int getSpeed()
          Time delay in milliseconds before each Selenium command is sent
 int getTimeout()
          Time limit in milliseconds which determines operation failed, either for executing Selenium command or starting Selenium configuration
 String getUrl()
           
 void setBrowser(String browser)
           
 void setServerHost(String serverHost)
           
 void setServerPort(int serverPort)
           
 void setSpeed(int speed)
           
 void setTimeout(int timeout)
           
 void setUrl(String url)
           
 
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
Constructor Detail

SeleniumConfiguration

public SeleniumConfiguration()
Creates default Selenium Configuration

Method Detail

getConfigurationName

public String getConfigurationName()
Specified by:
getConfigurationName in interface DroneConfiguration<SeleniumConfiguration>

configure

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

getServerPort

public int getServerPort()
A port where Selenium configuration is started/running

Returns:
the serverPort

setServerPort

public void setServerPort(int serverPort)
Parameters:
serverPort - the serverPort to set

getServerHost

public String getServerHost()
The name of machine where Selenium configuration is started/running

Returns:
the serverHost

setServerHost

public void setServerHost(String serverHost)
Parameters:
serverHost - the serverHost to set

getTimeout

public int getTimeout()
Time limit in milliseconds which determines operation failed, either for executing Selenium command or starting Selenium configuration

Returns:
the timeout

setTimeout

public void setTimeout(int timeout)
Parameters:
timeout - the timeout to set

getSpeed

public int getSpeed()
Time delay in milliseconds before each Selenium command is sent

Returns:
the speed

setSpeed

public void setSpeed(int speed)
Parameters:
speed - the speed to set

getBrowser

public String getBrowser()
Identification of the browser for needs of Selenium. Use can use variants including path to binary, such as: *firefoxproxy /opt/firefox-3.0/firefox

Returns:
the browser

setBrowser

public void setBrowser(String browser)
Parameters:
browser - the browser to set

setUrl

public void setUrl(String url)
Parameters:
url - the url to set

getUrl

public String getUrl()
Returns:
the url

Arquillian Drone Extension Support for Selenium 1.0.0.CR4

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