com.atlassian.selenium.mock
Class MockSeleniumConfiguration

java.lang.Object
  extended by com.atlassian.selenium.mock.MockSeleniumConfiguration
All Implemented Interfaces:
SeleniumConfiguration

public class MockSeleniumConfiguration
extends Object
implements SeleniumConfiguration

Mock SeleniumConfiguration.

Since:
v1.21

Constructor Summary
MockSeleniumConfiguration()
           
 
Method Summary
 MockSeleniumConfiguration conditionInterval(long interval)
           
 long getActionWait()
          The time that various utility classes will wait after performing some Selenium action like the mouseOver method in the SeleniumClient.
 String getBaseUrl()
          The starting url for the browser
 String getBrowserStartString()
          The browser start string to be passed to Selenium
 long getConditionCheckInterval()
          The time in milliseconds between condition checks.
 String getFirefoxProfileTemplate()
          Gets firefox profile location
 long getPageLoadWait()
          The maximum time various utility clasess will wait for a page to load.
 String getPerformanceReportLocation()
          File location where the performance report based on the time in wait for conditions should be created.
 String getServerLocation()
          The address of the node hosting the selenium server.
 int getServerPort()
          The port the selenium server is listening on
 boolean getShowAutoGeneratedPerformanceEvents()
          Determines whether the performance report will include all events (using the locator or some other auto-generated value as a key) or just those events where an explicit key has been provided.
 boolean getSingleWindowMode()
          Only applies if Selenium Server is started by the Atlassian Selenium Framework Will run the selenium server in single browser window or split between a command window and a test window
 boolean getStartSeleniumServer()
          Whether the framework should start the selenium server
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockSeleniumConfiguration

public MockSeleniumConfiguration()
Method Detail

conditionInterval

public MockSeleniumConfiguration conditionInterval(long interval)

getServerLocation

public String getServerLocation()
Description copied from interface: SeleniumConfiguration
The address of the node hosting the selenium server.

Specified by:
getServerLocation in interface SeleniumConfiguration

getServerPort

public int getServerPort()
Description copied from interface: SeleniumConfiguration
The port the selenium server is listening on

Specified by:
getServerPort in interface SeleniumConfiguration

getBrowserStartString

public String getBrowserStartString()
Description copied from interface: SeleniumConfiguration
The browser start string to be passed to Selenium

Specified by:
getBrowserStartString in interface SeleniumConfiguration

getFirefoxProfileTemplate

public String getFirefoxProfileTemplate()
Description copied from interface: SeleniumConfiguration
Gets firefox profile location

Specified by:
getFirefoxProfileTemplate in interface SeleniumConfiguration

getBaseUrl

public String getBaseUrl()
Description copied from interface: SeleniumConfiguration
The starting url for the browser

Specified by:
getBaseUrl in interface SeleniumConfiguration

getStartSeleniumServer

public boolean getStartSeleniumServer()
Description copied from interface: SeleniumConfiguration
Whether the framework should start the selenium server

Specified by:
getStartSeleniumServer in interface SeleniumConfiguration

getActionWait

public long getActionWait()
Description copied from interface: SeleniumConfiguration
The time that various utility classes will wait after performing some Selenium action like the mouseOver method in the SeleniumClient.

Specified by:
getActionWait in interface SeleniumConfiguration

getPageLoadWait

public long getPageLoadWait()
Description copied from interface: SeleniumConfiguration
The maximum time various utility clasess will wait for a page to load. Ideally this value should be used where ever a test waits for a page to load.

Specified by:
getPageLoadWait in interface SeleniumConfiguration

getConditionCheckInterval

public long getConditionCheckInterval()
Description copied from interface: SeleniumConfiguration
The time in milliseconds between condition checks.

Specified by:
getConditionCheckInterval in interface SeleniumConfiguration
See Also:
SeleniumAssertions#byTimeout(Condition)}

getSingleWindowMode

public boolean getSingleWindowMode()
Description copied from interface: SeleniumConfiguration
Only applies if Selenium Server is started by the Atlassian Selenium Framework Will run the selenium server in single browser window or split between a command window and a test window

Specified by:
getSingleWindowMode in interface SeleniumConfiguration

getPerformanceReportLocation

public String getPerformanceReportLocation()
Description copied from interface: SeleniumConfiguration
File location where the performance report based on the time in wait for conditions should be created. Report won't be generated if this returns a null value.

Specified by:
getPerformanceReportLocation in interface SeleniumConfiguration
Returns:

getShowAutoGeneratedPerformanceEvents

public boolean getShowAutoGeneratedPerformanceEvents()
Description copied from interface: SeleniumConfiguration
Determines whether the performance report will include all events (using the locator or some other auto-generated value as a key) or just those events where an explicit key has been provided.

Specified by:
getShowAutoGeneratedPerformanceEvents in interface SeleniumConfiguration
Returns:


Copyright © 2014 Atlassian. All rights reserved.