com.atlassian.confluence.selenium.client
Class ConfluenceSeleniumConfiguration

java.lang.Object
  extended by com.atlassian.confluence.selenium.client.ConfluenceSeleniumConfiguration
All Implemented Interfaces:
com.atlassian.selenium.SeleniumConfiguration

public class ConfluenceSeleniumConfiguration
extends java.lang.Object
implements com.atlassian.selenium.SeleniumConfiguration

A SeleniumConfiguration that is set up with system properties.

  • selenium.location - the location of the selenium server
  • selenium.port - the port of the selenium server
  • selenium.browser - the browser to use
  • baseurl - the base url of Confluence
  • selenium.max.wait.time - the maximum wait time in milliseconds for page loads and action waits
  • If no system properties are provided, it defaults to some default properties.

    See Also:
    DEFAULT_SELENIUM_LOCATION, DEFAULT_SELENIUM_PORT, DEFAULT_SELENIUM_BROWSER, DEFAULT_BASEURL, DEFAULT_MAX_PAGE_WAIT_TIME

    Field Summary
    static java.lang.String DEFAULT_BASEURL
               
    static int DEFAULT_CLEAR_WINDOW_WAIT_TIME
               
    static java.lang.String DEFAULT_FIREFOX_PROFILE_PATH
               
    static java.lang.String DEFAULT_JIRA_BASEURL
               
    static int DEFAULT_MAX_ACTION_WAIT_TIME
               
    static int DEFAULT_MAX_PAGE_WAIT_TIME
               
    static int DEFAULT_RESTART_SELENIUM_FREQUENCY
               
    static java.lang.String DEFAULT_SELENIUM_BROWSER
               
    static java.lang.String DEFAULT_SELENIUM_LOCATION
               
    static int DEFAULT_SELENIUM_PORT
               
     
    Method Summary
     long getActionWait()
               
     java.lang.String getBaseUrl()
               
     java.lang.String getBrowserStartString()
               
     long getClearWindowWait()
               
     long getConditionCheckInterval()
               
     java.lang.String getFirefoxProfileTemplate()
               
    static ConfluenceSeleniumConfiguration getInstance()
               
     java.lang.String getJiraBaseUrl()
               
     long getPageLoadWait()
               
     long getRestartSeleniumFrequency()
               
     java.lang.String getServerLocation()
               
     int getServerPort()
               
     boolean getSingleWindowMode()
               
     boolean getStartSeleniumServer()
               
     boolean isIE6Mode()
               
     
    Methods inherited from class java.lang.Object
    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
     
    Methods inherited from interface com.atlassian.selenium.SeleniumConfiguration
    getPerformanceReportLocation, getShowAutoGeneratedPerformanceEvents
     

    Field Detail

    DEFAULT_SELENIUM_LOCATION

    public static final java.lang.String DEFAULT_SELENIUM_LOCATION
    See Also:
    Constant Field Values

    DEFAULT_SELENIUM_PORT

    public static final int DEFAULT_SELENIUM_PORT
    See Also:
    Constant Field Values

    DEFAULT_SELENIUM_BROWSER

    public static final java.lang.String DEFAULT_SELENIUM_BROWSER
    See Also:
    Constant Field Values

    DEFAULT_BASEURL

    public static final java.lang.String DEFAULT_BASEURL
    See Also:
    Constant Field Values

    DEFAULT_JIRA_BASEURL

    public static final java.lang.String DEFAULT_JIRA_BASEURL
    See Also:
    Constant Field Values

    DEFAULT_MAX_PAGE_WAIT_TIME

    public static final int DEFAULT_MAX_PAGE_WAIT_TIME
    See Also:
    Constant Field Values

    DEFAULT_MAX_ACTION_WAIT_TIME

    public static final int DEFAULT_MAX_ACTION_WAIT_TIME
    See Also:
    Constant Field Values

    DEFAULT_CLEAR_WINDOW_WAIT_TIME

    public static final int DEFAULT_CLEAR_WINDOW_WAIT_TIME
    See Also:
    Constant Field Values

    DEFAULT_RESTART_SELENIUM_FREQUENCY

    public static final int DEFAULT_RESTART_SELENIUM_FREQUENCY
    See Also:
    Constant Field Values

    DEFAULT_FIREFOX_PROFILE_PATH

    public static final java.lang.String DEFAULT_FIREFOX_PROFILE_PATH
    See Also:
    Constant Field Values
    Method Detail

    getInstance

    public static ConfluenceSeleniumConfiguration getInstance()

    getServerLocation

    public java.lang.String getServerLocation()
    Specified by:
    getServerLocation in interface com.atlassian.selenium.SeleniumConfiguration

    getServerPort

    public int getServerPort()
    Specified by:
    getServerPort in interface com.atlassian.selenium.SeleniumConfiguration

    getBrowserStartString

    public java.lang.String getBrowserStartString()
    Specified by:
    getBrowserStartString in interface com.atlassian.selenium.SeleniumConfiguration

    getFirefoxProfileTemplate

    public java.lang.String getFirefoxProfileTemplate()
    Specified by:
    getFirefoxProfileTemplate in interface com.atlassian.selenium.SeleniumConfiguration

    getBaseUrl

    public java.lang.String getBaseUrl()
    Specified by:
    getBaseUrl in interface com.atlassian.selenium.SeleniumConfiguration

    getJiraBaseUrl

    public java.lang.String getJiraBaseUrl()

    getStartSeleniumServer

    public boolean getStartSeleniumServer()
    Specified by:
    getStartSeleniumServer in interface com.atlassian.selenium.SeleniumConfiguration

    getActionWait

    public long getActionWait()
    Specified by:
    getActionWait in interface com.atlassian.selenium.SeleniumConfiguration

    getPageLoadWait

    public long getPageLoadWait()
    Specified by:
    getPageLoadWait in interface com.atlassian.selenium.SeleniumConfiguration

    getClearWindowWait

    public long getClearWindowWait()

    getRestartSeleniumFrequency

    public long getRestartSeleniumFrequency()

    getConditionCheckInterval

    public long getConditionCheckInterval()
    Specified by:
    getConditionCheckInterval in interface com.atlassian.selenium.SeleniumConfiguration

    getSingleWindowMode

    public boolean getSingleWindowMode()
    Specified by:
    getSingleWindowMode in interface com.atlassian.selenium.SeleniumConfiguration

    isIE6Mode

    public boolean isIE6Mode()


    Copyright © 2003-2014 Atlassian. All Rights Reserved.