Class 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 Details

    • URI

      public static final String URI
      See Also:
    • ADMIN_USERNAME

      public static final String ADMIN_USERNAME
      See Also:
    • ADMIN_PASSWORD

      public static final String ADMIN_PASSWORD
      See Also:
    • announcementText

      protected com.atlassian.pageobjects.elements.PageElement announcementText
    • 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 in AbstractCrowdPage.waitUntilContentLoaded(). Subclasses should override this method to wait for a distinguishing content to appear. E.g. a page title.
      Overrides:
      isContentLoaded 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 username
      password - 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)
    • loginAsSysAdminWithRememberMe

      public <M extends com.atlassian.pageobjects.Page> M loginAsSysAdminWithRememberMe(Class<M> nextPage, Object... args)
    • 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 interface com.atlassian.pageobjects.page.LoginPage
    • login

      public <M extends com.atlassian.pageobjects.Page> M login(String username, String password, boolean rememberMe, Class<M> nextPage)
    • loginAsSysAdmin

      public <M extends com.atlassian.pageobjects.Page> M loginAsSysAdmin(Class<M> nextPage)
      Specified by:
      loginAsSysAdmin in interface com.atlassian.pageobjects.page.LoginPage
    • isRememberMeCheckboxPresent

      public boolean isRememberMeCheckboxPresent()
    • getHeaderText

      public String getHeaderText()
    • getWelcomeText

      public String getWelcomeText()
    • getAnnouncementText

      public String getAnnouncementText()
    • isAnnouncementPresent

      public boolean isAnnouncementPresent()
    • isLogoHidden

      public boolean isLogoHidden()
    • getUsernameFieldLabelText

      public String getUsernameFieldLabelText()
    • getCrowdLoginPageState

      public CrowdLoginPageState getCrowdLoginPageState()