public class Suite extends Object
Modifier and Type | Method and Description |
---|---|
Breadcrumbs |
getBreadcrumbs(ConfluenceRpc rpc) |
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 |
logIn(User user,
UrlBuilder builder) |
void |
logIn(User user,
UrlBuilder builder,
long timeoutMillis) |
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.
|
public static Suite getInstance()
public void logOut()
public void logOutWithoutLeavingCurrentPage()
public SpaceBrowse logIn(User user, Space destination)
public void logIn(User user, UrlBuilder builder)
public void logIn(User user, UrlBuilder builder, long timeoutMillis)
public void logIn(User user)
public void logIn(User user, String destination, long timeoutMillis, boolean rememberMe)
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 inpublic void logIn(User user, String destination, long timeoutMillis, boolean rememberMe, String language)
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 inlanguage
- Which language to use (e.g. en_GB, de_DE, fr_FR)public void logIn(User user, String destination, long timeoutMillis)
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
.public String getLoggedInUser()
public Breadcrumbs getBreadcrumbs(ConfluenceRpc rpc)
public void viewDashboard()
public PageView viewPage(LinkableContent page)
Copyright © 2003–2016 Atlassian. All rights reserved.