Package com.atlassian.crowd.pageobjects
Class CrowdLoginPage
java.lang.Object
com.atlassian.crowd.pageobjects.AbstractCrowdPage
com.atlassian.crowd.pageobjects.AbstractLoginPage
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 AbstractLoginPage
implements com.atlassian.pageobjects.page.LoginPage
Page object implementation for the LoginPage in Crowd.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
protected com.atlassian.pageobjects.elements.PageElement
protected com.atlassian.pageobjects.elements.PageElement
protected com.atlassian.pageobjects.elements.PageElement
static final String
protected com.atlassian.pageobjects.elements.PageElement
Fields inherited from class com.atlassian.crowd.pageobjects.AbstractLoginPage
errorSection, successSection
Fields inherited from class com.atlassian.crowd.pageobjects.AbstractCrowdPage
auiMessages, DEFAULT_CANCEL_BUTTON_ID, DEFAULT_FORM_FIELD_SELECTOR, DEFAULT_SUBMIT_BUTTON_SELECTOR, driver, finder, footer, forgedLicenseWarningBanner, I18N, NEXT_BUTTON_SELECTOR, pageBinder, systemAdminMenu, TABLE_ROWS_SELECTOR, VALUE_DATA_ATTRIBUTE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetUrl()
boolean
protected boolean
Returns whether the content has loaded.boolean
boolean
Logs in a system administrator with the given username and password.<M extends com.atlassian.pageobjects.Page>
M<M extends com.atlassian.pageobjects.Page>
MThis method is provided for compatibility with the framework only, as the client can't know for sure which nextPage is<M extends com.atlassian.pageobjects.Page>
MLogs in as a system administrator.<M extends com.atlassian.pageobjects.Page>
MloginAsSysAdmin
(Class<M> nextPage) <M extends com.atlassian.pageobjects.Page>
MloginAsSysAdmin
(Class<M> nextPage, Object... args) <M extends com.atlassian.pageobjects.Page>
MloginAsSysAdminWithRememberMe
(Class<M> nextPage, Object... args) Methods inherited from class com.atlassian.crowd.pageobjects.AbstractLoginPage
getErrorMessage, getReactMessage, getSuccessMessage
Methods inherited from class com.atlassian.crowd.pageobjects.AbstractCrowdPage
bindAndWaitUntilPageLoad, clickWithJsById, executeJavascript, getAuiMessages, getForgedLicenseWarningBanner, getHeader, getJsExecutor, getSystemAdminDropdownMenu, initializeSystemAdminMenu, isSystemAdminDropdownMenuPresent, reloadWithoutWaitingForContent, selectOptionById, selectOptionByLabel, setTextField, setTextFieldValueAndPressEnter, waitUntilAsyncFinished, waitUntilAsyncFinished, waitUntilContentLoaded, waitUntilPageLoad
-
Field Details
-
URI
- See Also:
-
ADMIN_USERNAME
- See Also:
-
ADMIN_PASSWORD
- See Also:
-
announcementText
protected com.atlassian.pageobjects.elements.PageElement announcementText -
header
protected com.atlassian.pageobjects.elements.PageElement header -
welcomeText
protected com.atlassian.pageobjects.elements.PageElement welcomeText -
noLogoSection
protected com.atlassian.pageobjects.elements.PageElement noLogoSection
-
-
Constructor Details
-
CrowdLoginPage
public CrowdLoginPage()
-
-
Method Details
-
isContentLoaded
protected boolean isContentLoaded()Description copied from class:AbstractCrowdPage
Returns whether the content has loaded. Used inAbstractCrowdPage.waitUntilContentLoaded()
. Subclasses should override this method to wait for a distinguishing content to appear. E.g. a page title.- Overrides:
isContentLoaded
in classAbstractCrowdPage
-
getUrl
- Specified by:
getUrl
in interfacecom.atlassian.pageobjects.Page
-
loginAsSysAdmin
Logs in as a system administrator.- Returns:
- the next page
- Throws:
RuntimeException
- if the login wasn't successful
-
login
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
-
loginAsSysAdminWithRememberMe
-
login
public <M extends com.atlassian.pageobjects.Page> M login(String username, String password, boolean rememberMe, Class<M> nextPage, Object... args) This method is provided for compatibility with the framework only, as the client can't know for sure which nextPage is -
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
-
loginAsSysAdmin
- Specified by:
loginAsSysAdmin
in interfacecom.atlassian.pageobjects.page.LoginPage
-
isRememberMeCheckboxPresent
public boolean isRememberMeCheckboxPresent() -
getHeaderText
-
getWelcomeText
-
getAnnouncementText
-
isAnnouncementPresent
public boolean isAnnouncementPresent() -
isLogoHidden
public boolean isLogoHidden() -
getUsernameFieldLabelText
-
getCrowdLoginPageState
-