com.atlassian.confluence.selenium.client
Class Confluence

java.lang.Object
  extended by com.atlassian.confluence.selenium.client.Confluence

public class Confluence
extends Object


Constructor Summary
Confluence(ConfluenceSeleniumClient client)
           
 
Method Summary
 SpaceBrowse browseSpace(Space space)
           
static String escapeString(String string)
          Escapes single and double quotes in a string so that it can be embedded in another string containing those JavaScript string delimiters.
 Breadcrumbs getBreadcrumbs()
           
 String getLoggedInUser()
           
 void logIn(User user)
           
 PageView logIn(User user, BlogPost destination)
           
 PageView logIn(User user, Page destination)
           
 SpaceBrowse logIn(User user, Space destination)
           
 void logIn(User user, String destination)
           
 void logIn(User user, String destination, long timeoutMillis)
          Log in as the specified user, going to the provided URL (relative to the context path) after logging in.
 void logIn(User user, String destination, long timeoutMillis, boolean rememberMe)
          Log in as the specified user, going to the provided URL (relative to the context path) after logging in.
 void logIn(User user, String destination, long timeoutMillis, boolean rememberMe, String language)
          Log in as the specified user, going to the provided URL (relative to the context path) after logging in.
 void logOut()
           
 PageView viewPage(LinkableContent page)
          Views the given page or blogpost, without logging in, and returns a PageView.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Confluence

public Confluence(ConfluenceSeleniumClient client)
Method Detail

logOut

public void logOut()

logIn

public PageView logIn(User user,
                      Page destination)

logIn

public PageView logIn(User user,
                      BlogPost destination)

logIn

public SpaceBrowse logIn(User user,
                         Space destination)

logIn

public void logIn(User user,
                  String destination)

logIn

public void logIn(User user)

logIn

public void logIn(User user,
                  String destination,
                  long timeoutMillis,
                  boolean rememberMe)
Log in as the specified user, going to the provided URL (relative to the context path) after logging in. NOTE: This method will not login again, if the user is already logged in.

Parameters:
user - the user to log in as.
destination - where to go after logging in. Pass 'null' to go to the default homepage.
timeoutMillis - maximum wait time for the destination page to load in milliseconds, or zero to wait for the default time specified by ConfluenceSeleniumClient.
rememberMe - set "remember me" checkbox when login in

logIn

public void logIn(User user,
                  String destination,
                  long timeoutMillis,
                  boolean rememberMe,
                  String language)
Log in as the specified user, going to the provided URL (relative to the context path) after logging in. NOTE: This method will not login again, if the user is already logged in.

Parameters:
user - the user to log in as.
destination - where to go after logging in. Pass 'null' to go to the default homepage.
timeoutMillis - maximum wait time for the destination page to load in milliseconds, or zero to wait for the default time specified by ConfluenceSeleniumClient.
rememberMe - set "remember me" checkbox when login in
language - Which language to use (e.g. en_GB, de_DE, fr_FR)

logIn

public void logIn(User user,
                  String destination,
                  long timeoutMillis)
Log in as the specified user, going to the provided URL (relative to the context path) after logging in.

Parameters:
user - the user to log in as.
destination - where to go after logging in. Pass 'null' to go to the default homepage.
timeoutMillis - maximum wait time for the destination page to load in milliseconds, or zero to wait for the default time specified by ConfluenceSeleniumClient.

getLoggedInUser

public String getLoggedInUser()

getBreadcrumbs

public Breadcrumbs getBreadcrumbs()

viewPage

public PageView viewPage(LinkableContent page)
Views the given page or blogpost, without logging in, and returns a PageView.


escapeString

public static String escapeString(String string)
Escapes single and double quotes in a string so that it can be embedded in another string containing those JavaScript string delimiters.


browseSpace

public SpaceBrowse browseSpace(Space space)


Copyright © 2003-2011 Atlassian. All Rights Reserved.