|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.selenium.client.Confluence
public class Confluence
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 |
---|
public Confluence(ConfluenceSeleniumClient client)
Method Detail |
---|
public void logOut()
public PageView logIn(User user, Page destination)
public PageView logIn(User user, BlogPost destination)
public SpaceBrowse logIn(User user, Space destination)
public void logIn(User user, String destination)
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()
public PageView viewPage(LinkableContent page)
public static String escapeString(String string)
public SpaceBrowse browseSpace(Space space)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |