com.atlassian.crowd.pageobjects
Class CrowdLoginPage
java.lang.Object
com.atlassian.crowd.pageobjects.AbstractCrowdPage
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.
|
Method Summary |
java.lang.String |
getUrl()
|
CrowdConsole |
login(java.lang.String username,
java.lang.String password)
Logs in a system administrator with the given username and password. |
<M extends com.atlassian.pageobjects.Page>
M |
|
login(java.lang.String username,
java.lang.String password,
java.lang.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(java.lang.Class<M> nextPage)
|
protected void |
waitUntilContentLoad()
Waits until the content has loaded. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CrowdLoginPage
public CrowdLoginPage()
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 java.lang.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:
java.lang.RuntimeException - if the login wasn't successful
login
public CrowdConsole login(java.lang.String username,
java.lang.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 usernamepassword - the password
- Returns:
- the next page
- Throws:
java.lang.RuntimeException - if the login wasn't successful
loginAsSysAdmin
public <M extends com.atlassian.pageobjects.Page> M loginAsSysAdmin(java.lang.Class<M> nextPage)
- Specified by:
loginAsSysAdmin in interface com.atlassian.pageobjects.page.LoginPage
login
public <M extends com.atlassian.pageobjects.Page> M login(java.lang.String username,
java.lang.String password,
java.lang.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.