com.atlassian.webdriver.confluence.page
Class ConfluenceLoginPage

java.lang.Object
  extended by com.atlassian.webdriver.confluence.page.ConfluenceAbstractPage
      extended by com.atlassian.webdriver.confluence.page.ConfluenceLoginPage
All Implemented Interfaces:
Page, LoginPage, UserDiscoverable
Direct Known Subclasses:
LogoutPage

public class ConfluenceLoginPage
extends ConfluenceAbstractPage
implements LoginPage

Page object implementation for the LoginPage in Confluence.


Field Summary
static String URI
           
 
Constructor Summary
ConfluenceLoginPage()
           
 
Method Summary
 String getUrl()
           
<M extends Page>
M
login(String username, String password, boolean rememberMe, Class<M> nextPage)
           
<M extends Page>
M
login(String username, String password, Class<M> nextPage)
          Logs in a user and sends the browser to the next page
<M extends Page>
M
loginAsSysAdmin(Class<M> nextPage)
          Logs in the default sysadmin user and sends the browser to the next page
 
Methods inherited from class com.atlassian.webdriver.confluence.page.ConfluenceAbstractPage
doWait, getBrowseMenu, getHeader, getUserMenu, isAdmin, isLoggedIn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

URI

public static final String URI
See Also:
Constant Field Values
Constructor Detail

ConfluenceLoginPage

public ConfluenceLoginPage()
Method Detail

getUrl

public String getUrl()
Specified by:
getUrl in interface Page
Returns:
The URI, including query string, relative to the base url

login

public <M extends Page> M login(String username,
                                String password,
                                Class<M> nextPage)
Description copied from interface: LoginPage
Logs in a user and sends the browser to the next page

Specified by:
login in interface LoginPage
Type Parameters:
M - The page type
Parameters:
username - The username to login
password - The password to login with
nextPage - The next page to visit, which may involve changing the URL. Cannot be null.
Returns:
The next page, fully loaded and initialized.

loginAsSysAdmin

public <M extends Page> M loginAsSysAdmin(Class<M> nextPage)
Description copied from interface: LoginPage
Logs in the default sysadmin user and sends the browser to the next page

Specified by:
loginAsSysAdmin in interface LoginPage
Type Parameters:
M - The page type
Parameters:
nextPage - The next page to visit, which may involve changing the URL. Cannot be null.
Returns:
The next page, fully loaded and initialized.

login

public <M extends Page> M login(String username,
                                String password,
                                boolean rememberMe,
                                Class<M> nextPage)


Copyright © 2014 Atlassian. All rights reserved.