public class ConfluenceLogin extends Object implements SeleniumLogin
Constructor and Description |
---|
ConfluenceLogin(ConfluenceSeleniumClient confluenceClient) |
Modifier and Type | Method and Description |
---|---|
String |
getLogoutPath()
The relative path of the logout screen.
|
void |
logIn(User user,
String destination,
long timeoutMillis,
boolean rememberMe,
String language)
Logs the specified User in and redirects them to a destination page (if specified).
|
void |
logOut()
Logs the current user out, after which the browser can be assumed to be on a "Logged Out" screen.
|
public ConfluenceLogin(ConfluenceSeleniumClient confluenceClient)
public void logIn(User user, String destination, long timeoutMillis, boolean rememberMe, String language)
SeleniumLogin
Specifying a destination is preferred so that the calling test doesn't waste time loading the dashboard - the browser will be directed to the destination page directly from the Login screen.
logIn
in interface SeleniumLogin
user
- a Confluence userdestination
- (optional) a relative path (after the context)timeoutMillis
- how long to wait for the Dashboard or destination page to loadrememberMe
- whether the "Remember Me" option on the login form should be checkedlanguage
- (optional) the language to load the destination page inpublic void logOut()
SeleniumLogin
logOut
in interface SeleniumLogin
public String getLogoutPath()
SeleniumLogin
Suite
facade.getLogoutPath
in interface SeleniumLogin
Copyright © 2003–2017 Atlassian. All rights reserved.