Package com.atlassian.crowd.pageobjects
Class AbstractLoginPage
java.lang.Object
com.atlassian.crowd.pageobjects.AbstractCrowdPage
com.atlassian.crowd.pageobjects.AbstractLoginPage
- All Implemented Interfaces:
CrowdLoginPage,CrowdPage,com.atlassian.pageobjects.Page,com.atlassian.pageobjects.page.LoginPage
- Direct Known Subclasses:
Crowd2svLoginPage,LegacyCrowdLoginPage
-
Field Summary
FieldsFields inherited from class com.atlassian.crowd.pageobjects.AbstractCrowdPage
adminMenuGeneralOption, adminMenuIcon, auiMessages, DEFAULT_CANCEL_BUTTON_ID, DEFAULT_FORM_FIELD_SELECTOR, DEFAULT_SUBMIT_BUTTON_SELECTOR, driver, finder, footer, forgedLicenseWarningBanner, I18N, NEXT_BUTTON_SELECTOR, pageBinder, selectedTopNavMenuItem, systemAdminMenu, TABLE_ROWS_SELECTOR, topNavApplicationsOption, topNavAuditLogOption, topNavDirectoriesOption, topNavGroupsOption, topNavigationBar, topNavigationBarItemsList, topNavUsersOption, VALUE_DATA_ATTRIBUTEFields inherited from interface com.atlassian.crowd.pageobjects.CrowdLoginPage
URI -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected <M extends com.atlassian.pageobjects.Page>
MbindTargetPage(Class<M> nextPage, Object[] args) getUrl()Logs in a system administrator with the given username and password.<M extends com.atlassian.pageobjects.Page>
M<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) loginAsSysAdmin(String username, String password) <M extends com.atlassian.pageobjects.Page>
MloginAsSysAdminWithRememberMe(Class<M> nextPage, Object... args) Methods inherited from class com.atlassian.crowd.pageobjects.AbstractCrowdPage
bindAndWaitUntilPageLoad, clickAdminMenuIcon, clickApplicationsLinkInTopNavMenu, clickGeneralOptionInAdminMenu, clickWithJsById, executeJavascript, getAuiMessages, getForgedLicenseWarningBanner, getHeader, getJsExecutor, getPageLoadTimeout, getSelectedTopNavMenuItemID, getSelectedTopNavMenuItems, getSystemAdminDropdownMenu, initializeSystemAdminMenu, isContentLoaded, isSystemAdminDropdownMenuPresent, reloadWithoutWaitingForContent, selectOptionById, selectOptionByLabel, setTextField, setTextFieldValueAndPressEnter, toMillis, waitUntilAsyncFinished, waitUntilAsyncFinished, waitUntilContentLoaded, waitUntilPageLoadMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.crowd.pageobjects.CrowdLoginPage
getAnnouncementText, getCrowdLoginPageState, getErrorMessage, getHeaderText, getLoginFailedErrorMessage, getLoginFailedErrorMessageWithEmailEnabled, getSuccessMessage, getUsernameFieldLabelText, getWelcomeText, isAnnouncementPresent, isLogoHidden, isRememberMeCheckboxPresent, loginMethods inherited from interface com.atlassian.crowd.pageobjects.CrowdPage
isSystemAdminDropdownMenuPresent
-
Field Details
-
ADMIN_USERNAME
- See Also:
-
ADMIN_PASSWORD
- See Also:
-
-
Constructor Details
-
AbstractLoginPage
public AbstractLoginPage()
-
-
Method Details
-
getUrl
- Specified by:
getUrlin interfacecom.atlassian.pageobjects.Page
-
login
Logs in a system administrator with the given username and password. Use this method only if the authentication is expected to succeed.- Specified by:
loginin interfaceCrowdLoginPage- 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, Object... args) - Specified by:
loginAsSysAdminin interfaceCrowdLoginPage
-
loginAsSysAdminWithRememberMe
public <M extends com.atlassian.pageobjects.Page> M loginAsSysAdminWithRememberMe(Class<M> nextPage, Object... args) - Specified by:
loginAsSysAdminWithRememberMein interfaceCrowdLoginPage
-
login
public <M extends com.atlassian.pageobjects.Page> M login(String username, String password, Class<M> nextPage) - Specified by:
loginin interfaceCrowdLoginPage- Specified by:
loginin interfacecom.atlassian.pageobjects.page.LoginPage
-
login
public <M extends com.atlassian.pageobjects.Page> M login(String username, String password, boolean rememberMe, Class<M> nextPage) - Specified by:
loginin interfaceCrowdLoginPage
-
loginAsSysAdmin
- Specified by:
loginAsSysAdminin interfaceCrowdLoginPage- Specified by:
loginAsSysAdminin interfacecom.atlassian.pageobjects.page.LoginPage
-
bindTargetPage
-
loginAsSysAdmin
Logs in as a system administrator.- Specified by:
loginAsSysAdminin interfaceCrowdLoginPage- Returns:
- the next page
- Throws:
RuntimeException- if the login wasn't successful
-
loginAsSysAdmin
- Specified by:
loginAsSysAdminin interfaceCrowdLoginPage
-