com.atlassian.bamboo.pageobjects.pages.global
Class BambooLoginPage
java.lang.Object
com.atlassian.bamboo.pageobjects.core.AbstractBambooPage
com.atlassian.bamboo.pageobjects.pages.global.BambooLoginPage
- All Implemented Interfaces:
- com.atlassian.pageobjects.Page, com.atlassian.pageobjects.page.LoginPage
public class BambooLoginPage
- extends AbstractBambooPage
- implements com.atlassian.pageobjects.page.LoginPage
Field Summary |
static java.lang.String |
URI
|
Method Summary |
java.lang.String |
getErrorMessage()
|
java.lang.String |
getUrl()
|
com.atlassian.pageobjects.elements.PageElement |
indicator()
This must return an element whose presence indicates that we're on given page. |
protected com.atlassian.pageobjects.elements.query.TimedCondition |
isPageLoaded()
This indicates that the page has loaded and the presence of indicator may be verified. |
BambooDashboardPage |
login(java.lang.String username,
java.lang.String password)
Login with default scenario - ending up on the dashboard. |
<M extends com.atlassian.pageobjects.Page>
M |
|
login(java.lang.String username,
java.lang.String password,
boolean rememberMe,
java.lang.Class<M> nextPage)
|
<M extends com.atlassian.pageobjects.Page>
M |
|
login(java.lang.String username,
java.lang.String password,
java.lang.Class<M> nextPage)
|
BambooDashboardPage |
loginAsSysAdmin()
Login as sysadmin expecting dashboard as the next page - the default scenario. |
<M extends com.atlassian.pageobjects.Page>
M |
|
loginAsSysAdmin(java.lang.Class<M> nextPage)
|
BambooLoginPage |
loginExpectingError(java.lang.String username,
java.lang.String password)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
URI
public static final java.lang.String URI
- See Also:
- Constant Field Values
BambooLoginPage
public BambooLoginPage()
getUrl
public java.lang.String getUrl()
- Specified by:
getUrl
in interface com.atlassian.pageobjects.Page
isPageLoaded
protected com.atlassian.pageobjects.elements.query.TimedCondition isPageLoaded()
- Description copied from class:
AbstractBambooPage
- This indicates that the page has loaded and the presence of indicator may be verified.
- Overrides:
isPageLoaded
in class AbstractBambooPage
- Returns:
- time condition indication that the page has loaded
indicator
public com.atlassian.pageobjects.elements.PageElement indicator()
- Description copied from class:
AbstractBambooPage
- This must return an element whose presence indicates that we're on given page.
- Specified by:
indicator
in class AbstractBambooPage
- Returns:
- element uniquely identifying given page
getErrorMessage
public java.lang.String getErrorMessage()
login
public <M extends com.atlassian.pageobjects.Page> M login(java.lang.String username,
java.lang.String password,
java.lang.Class<M> nextPage)
- Specified by:
login
in interface com.atlassian.pageobjects.page.LoginPage
login
public BambooDashboardPage login(java.lang.String username,
java.lang.String password)
- Login with default scenario - ending up on the dashboard.
- Parameters:
username
- usernamepassword
- password
- Returns:
- dashboard page instance
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
loginAsSysAdmin
public BambooDashboardPage loginAsSysAdmin()
- Login as sysadmin expecting dashboard as the next page - the default scenario.
- Returns:
- dashboard page
login
public <M extends com.atlassian.pageobjects.Page> M login(java.lang.String username,
java.lang.String password,
boolean rememberMe,
java.lang.Class<M> nextPage)
loginExpectingError
public BambooLoginPage loginExpectingError(java.lang.String username,
java.lang.String password)
Copyright © 2012 Atlassian. All Rights Reserved.