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
- Direct Known Subclasses:
- LogoutPage
public class CrowdLoginPage
- extends AbstractCrowdPage
- implements com.atlassian.pageobjects.page.LoginPage
Page object implementation for the LoginPage in Crowd.
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 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 usernamepassword
- 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 © 2013 Atlassian. All Rights Reserved.