public class CrowdLoginPage extends AbstractLoginPage implements com.atlassian.pageobjects.page.LoginPage
Modifier and Type | Field and Description |
---|---|
protected com.atlassian.pageobjects.elements.PageElement |
header |
protected com.atlassian.pageobjects.elements.PageElement |
noLogoSection |
static String |
URI |
protected com.atlassian.pageobjects.elements.PageElement |
welcomeText |
errorSection, successSection
auiMessages, DEFAULT_CANCEL_BUTTON_ID, DEFAULT_SUBMIT_BUTTON_SELECTOR, driver, finder, footer, forgedLicenseWarningBanner, I18N, NEXT_BUTTON_SELECTOR, pageBinder, systemAdminMenu, TABLE_ROWS_SELECTOR, VALUE_DATA_ATTRIBUTE
Constructor and Description |
---|
CrowdLoginPage() |
Modifier and Type | Method and Description |
---|---|
String |
getHeaderText() |
String |
getUrl() |
String |
getWelcomeText() |
protected boolean |
isContentLoaded()
Returns whether the content has loaded.
|
boolean |
isLogoHidden() |
boolean |
isRememberMeCheckboxPresent() |
CrowdConsole |
login(String username,
String password)
Logs in a system administrator with the given username and password.
|
<M extends com.atlassian.pageobjects.Page> |
login(String username,
String password,
boolean rememberMe,
Class<M> nextPage) |
<M extends com.atlassian.pageobjects.Page> |
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
|
<M extends com.atlassian.pageobjects.Page> |
login(String username,
String password,
Class<M> nextPage) |
CrowdConsole |
loginAsSysAdmin()
Logs in as a system administrator.
|
<M extends com.atlassian.pageobjects.Page> |
loginAsSysAdmin(Class<M> nextPage) |
<M extends com.atlassian.pageobjects.Page> |
loginAsSysAdmin(Class<M> nextPage,
Object... args) |
<M extends com.atlassian.pageobjects.Page> |
loginAsSysAdminWithRememberMe(Class<M> nextPage,
Object... args) |
getErrorMessage, getReactMessage, getSuccessMessage
bindAndWaitUntilPageLoad, getAuiMessages, getForgedLicenseWarningBanner, getHeader, isSystemAdminMenuPresent, reloadWithoutWaitingForContent, setTextField, setTextFieldValueAndPressEnter, waitUntilAsyncFinished, waitUntilAsyncFinished, waitUntilContentLoaded, waitUntilPageLoad
public static final String URI
protected com.atlassian.pageobjects.elements.PageElement header
protected com.atlassian.pageobjects.elements.PageElement welcomeText
protected com.atlassian.pageobjects.elements.PageElement noLogoSection
protected boolean isContentLoaded()
AbstractCrowdPage
AbstractCrowdPage.waitUntilContentLoaded()
. Subclasses should override
this method to wait for a distinguishing content to appear. E.g. a page title.isContentLoaded
in class AbstractCrowdPage
public String getUrl()
getUrl
in interface com.atlassian.pageobjects.Page
public CrowdConsole loginAsSysAdmin()
RuntimeException
- if the login wasn't successfulpublic CrowdConsole login(String username, String password)
username
- the usernamepassword
- the passwordRuntimeException
- if the login wasn't successfulpublic <M extends com.atlassian.pageobjects.Page> M loginAsSysAdmin(Class<M> nextPage, Object... args)
public <M extends com.atlassian.pageobjects.Page> M loginAsSysAdminWithRememberMe(Class<M> nextPage, Object... args)
public <M extends com.atlassian.pageobjects.Page> M login(String username, String password, boolean rememberMe, Class<M> nextPage, Object... args)
public <M extends com.atlassian.pageobjects.Page> M login(String username, String password, Class<M> nextPage)
login
in interface com.atlassian.pageobjects.page.LoginPage
public <M extends com.atlassian.pageobjects.Page> M login(String username, String password, boolean rememberMe, Class<M> nextPage)
public <M extends com.atlassian.pageobjects.Page> M loginAsSysAdmin(Class<M> nextPage)
loginAsSysAdmin
in interface com.atlassian.pageobjects.page.LoginPage
public boolean isRememberMeCheckboxPresent()
public String getHeaderText()
public String getWelcomeText()
public boolean isLogoHidden()
Copyright © 2021 Atlassian. All rights reserved.