public class CrowdLoginPage extends AbstractCrowdPage implements com.atlassian.pageobjects.page.LoginPage
Modifier and Type | Field and Description |
---|---|
static org.openqa.selenium.By |
ERROR_DESCRIPTION_LOCATOR |
static String |
URI |
auiMessages, DEFAULT_CANCEL_BUTTON_ID, DEFAULT_SUBMIT_BUTTON_SELECTOR, driver, finder, footer, I18N, NEXT_BUTTON_SELECTOR, pageBinder, systemAdminMenu, TABLE_ROWS_SELECTOR, VALUE_DATA_ATTRIBUTE
Constructor and Description |
---|
CrowdLoginPage() |
Modifier and Type | Method and Description |
---|---|
String |
getError() |
String |
getSuccessMessage() |
String |
getUrl() |
protected boolean |
isContentLoaded()
Returns whether the content has loaded.
|
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) |
getAuiMessages, getHeader, getReactMessage, isSystemAdminMenuPresent, reloadWithoutWaitingForContent, setTextField, setTextFieldValueAndPressEnter, waitUntilContentLoaded, waitUntilPageLoad
public static final String URI
public static final org.openqa.selenium.By ERROR_DESCRIPTION_LOCATOR
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 getSuccessMessage()
public String getError()
Copyright © 2020 Atlassian. All rights reserved.