Class BambooLoginPage
java.lang.Object
com.atlassian.bamboo.pageobjects.pages.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
Fields inherited from class com.atlassian.bamboo.pageobjects.pages.AbstractBambooPage
driver, elementFinder, pageBinder, poller, testedProduct, timeouts
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.atlassian.pageobjects.elements.query.TimedCondition
Has the captcha image actually loaded (will not work in IE).getUrl()
com.atlassian.pageobjects.elements.PageElement
This must return an element whose presence indicates that we're on given page.protected com.atlassian.pageobjects.elements.query.TimedCondition
This indicates that the page has loaded and the presence of indicator may be verified.Login with default scenario - ending up on the dashboard.<M extends com.atlassian.pageobjects.Page>
M<M extends com.atlassian.pageobjects.Page>
M<M extends com.atlassian.pageobjects.Page>
M<M extends com.atlassian.pageobjects.Page>
MLogin as sysadmin expecting dashboard as the next page - the default scenario.<M extends com.atlassian.pageobjects.Page>
MloginAsSysAdmin
(Class<M> nextPage) loginExpectingError
(String username, String password) com.atlassian.pageobjects.elements.query.TimedCondition
Is the captcha Image tag visible?Methods inherited from class com.atlassian.bamboo.pageobjects.pages.AbstractBambooPage
click, doWait, ensureIndicatorPresent, getFooter, getHeader, getTimeouts, isAdmin, isLoggedIn, sendEscapeKey, waitUntilElementIsLocated, waitUntilElementIsNotLocated, waitUntilElementIsNotVisible, waitUntilElementIsVisible
-
Field Details
-
URI
- See Also:
-
-
Constructor Details
-
BambooLoginPage
public BambooLoginPage()
-
-
Method Details
-
getUrl
- Specified by:
getUrl
in interfacecom.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 classAbstractBambooPage
- 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 classAbstractBambooPage
- Returns:
- element uniquely identifying given page
-
getErrorMessage
-
login
public <M extends com.atlassian.pageobjects.Page> M login(String username, String password, Class<M> nextPage) - Specified by:
login
in interfacecom.atlassian.pageobjects.page.LoginPage
-
login
-
login
Login with default scenario - ending up on the dashboard.- Parameters:
user
- user- Returns:
- dashboard page instance
-
loginAsSysAdmin
- Specified by:
loginAsSysAdmin
in interfacecom.atlassian.pageobjects.page.LoginPage
-
loginAsSysAdmin
Login as sysadmin expecting dashboard as the next page - the default scenario.- Returns:
- dashboard page
-
login
-
login
-
loginExpectingError
-
showsCaptcha
public com.atlassian.pageobjects.elements.query.TimedCondition showsCaptcha()Is the captcha Image tag visible? -
captchaLoaded
public com.atlassian.pageobjects.elements.query.TimedCondition captchaLoaded()Has the captcha image actually loaded (will not work in IE). -
getCaptchaImageSource
-