com.atlassian.crowd.pageobjects
Class CrowdLoginPage

java.lang.Object
  extended by com.atlassian.crowd.pageobjects.AbstractCrowdPage
      extended by com.atlassian.crowd.pageobjects.CrowdLoginPage
All Implemented Interfaces:
com.atlassian.pageobjects.Page, com.atlassian.pageobjects.page.LoginPage

public class CrowdLoginPage
extends AbstractCrowdPage
implements com.atlassian.pageobjects.page.LoginPage

Page object implementation for the LoginPage in Crowd.


Field Summary
 
Fields inherited from class com.atlassian.crowd.pageobjects.AbstractCrowdPage
binder, driver, finder, footer, pageBinder
 
Constructor Summary
CrowdLoginPage()
           
 
Method Summary
 String getUrl()
           
 CrowdConsole login(String username, String password)
          Logs in a system administrator with the given username and password.
<M extends com.atlassian.pageobjects.Page>
M
login(String username, String password, Class<M> nextPage)
          This method is provided for compatibility with the framework only, as the client can't know for sure which nextPage is
 CrowdConsole loginAsSysAdmin()
          Logs in as a system administrator.
<M extends com.atlassian.pageobjects.Page>
M
loginAsSysAdmin(Class<M> nextPage)
           
protected  void waitUntilContentLoad()
          Waits until the content has loaded.
 
Methods inherited from class com.atlassian.crowd.pageobjects.AbstractCrowdPage
getHeader, waitUntilPageLoad
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CrowdLoginPage

public CrowdLoginPage()
Method Detail

waitUntilContentLoad

protected void waitUntilContentLoad()
Description copied from class: AbstractCrowdPage
Waits until the content has loaded. Used in AbstractCrowdPage.waitUntilPageLoad(). Subclasses should override this method to wait for a distinguishing content to appear. E.g. a page title.

Overrides:
waitUntilContentLoad in class AbstractCrowdPage

getUrl

public String getUrl()
Specified by:
getUrl in interface com.atlassian.pageobjects.Page

loginAsSysAdmin

public CrowdConsole loginAsSysAdmin()
Logs in as a system administrator.

Returns:
the next page
Throws:
RuntimeException - if the login wasn't successful

login

public CrowdConsole login(String username,
                          String password)
Logs in a system administrator with the given username and password. Use this method only if the authentication is expected to succeed.

Parameters:
username - the username
password - the password
Returns:
the next page
Throws:
RuntimeException - if the login wasn't successful

loginAsSysAdmin

public <M extends com.atlassian.pageobjects.Page> M loginAsSysAdmin(Class<M> nextPage)
Specified by:
loginAsSysAdmin in interface com.atlassian.pageobjects.page.LoginPage

login

public <M extends com.atlassian.pageobjects.Page> M login(String username,
                                                          String password,
                                                          Class<M> nextPage)
This method is provided for compatibility with the framework only, as the client can't know for sure which nextPage is

Specified by:
login in interface com.atlassian.pageobjects.page.LoginPage


Copyright © 2012 Atlassian. All Rights Reserved.