com.atlassian.confluence.selenium.client
Class Suite

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

public class Suite
extends Object

Provides site actions common to Standalone and OnDemand Confluence instances.


Method Summary
 SpaceBrowse browseSpace(Space space)
           
 Breadcrumbs getBreadcrumbs()
           
static Suite getInstance()
           
 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()
           
 void logOutWithoutLeavingCurrentPage()
          This doesn't work on IE for some reason, it gives a JS error.
 void viewDashboard()
           
 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
 

Method Detail

getInstance

public static Suite getInstance()

logOut

public void logOut()

logOutWithoutLeavingCurrentPage

public void logOutWithoutLeavingCurrentPage()
This doesn't work on IE for some reason, it gives a JS error.


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()

viewDashboard

public void viewDashboard()

viewPage

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


browseSpace

public SpaceBrowse browseSpace(Space space)


Copyright © 2003-2012 Atlassian. All Rights Reserved.