Graphene Selenium: API 2.0.0.Alpha1

org.jboss.arquillian.ajocado.framework
Interface GrapheneConfiguration

All Superinterfaces:
Cloneable, Serializable
All Known Subinterfaces:
AjocadoConfiguration

public interface GrapheneConfiguration
extends Cloneable, Serializable

The runtime configuration of Graphene test.

Version:
$Revision$
Author:
Lukas Fryc

Nested Class Summary
static class GrapheneConfiguration.TimeoutType
          Type of selenium timeout
 
Method Summary
 Browser getBrowser()
          Returns current browser implementation used in tests.
 String getSeleniumHost()
          Returns the host of Selenium Server
 int getSeleniumPort()
          Returns the port for Selenium Server
 int getSeleniumSpeed()
          Returns the speed of performing selenium commands
 String getStartParameters()
          Returns the selenium startup parameters (as required by Selenium#start(String) method).
 long getTimeout(GrapheneConfiguration.TimeoutType type)
          Returns the predefined timeout for given type.
 boolean isSeleniumDebug()
          Returns if Selenium test is in debug mode
 boolean isSeleniumMaximize()
          Returns whenever should browser window be maximized after start.
 boolean isSeleniumNetworkTrafficEnabled()
          Returns if the network traffic should be captured during the selenium session.
 

Method Detail

getBrowser

Browser getBrowser()
Returns current browser implementation used in tests.

Returns:
current browser implementation used in tests.

getSeleniumHost

String getSeleniumHost()
Returns the host of Selenium Server

Returns:
the host of Selenium Server

getSeleniumPort

int getSeleniumPort()
Returns the port for Selenium Server

Returns:
the port for Selenium Server

isSeleniumMaximize

boolean isSeleniumMaximize()
Returns whenever should browser window be maximized after start.

Returns:
whenever should browser window be maximized after start

isSeleniumDebug

boolean isSeleniumDebug()
Returns if Selenium test is in debug mode

Returns:
if Selenium test is in debug mode

getSeleniumSpeed

int getSeleniumSpeed()
Returns the speed of performing selenium commands

Returns:
the speed of performing selenium commands

isSeleniumNetworkTrafficEnabled

boolean isSeleniumNetworkTrafficEnabled()
Returns if the network traffic should be captured during the selenium session.

Returns:
if the network traffic should be captured during the selenium session.

getStartParameters

String getStartParameters()
Returns the selenium startup parameters (as required by Selenium#start(String) method).

Returns:
the selenium startup parameters (as required by Selenium#start(String) method).

getTimeout

long getTimeout(GrapheneConfiguration.TimeoutType type)
Returns the predefined timeout for given type.

Parameters:
type - the type of timeout (GrapheneConfiguration.TimeoutType)
Returns:
the predefined timeout for given type.

Graphene Selenium: API 2.0.0.Alpha1

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