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, 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() |
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) |
protected void |
waitUntilContentLoad()
Waits until the content has loaded.
|
getAuiMessages, getHeader, getReactMessage, isSystemAdminMenuPresent, setTextField, waitUntilPageLoadpublic static final String URI
public static final org.openqa.selenium.By ERROR_DESCRIPTION_LOCATOR
protected void waitUntilContentLoad()
AbstractCrowdPageAbstractCrowdPage.waitUntilPageLoad(). Subclasses should override this
method to wait for a distinguishing content to appear. E.g. a page title.waitUntilContentLoad in class AbstractCrowdPagepublic String getUrl()
getUrl in interface com.atlassian.pageobjects.Pagepublic 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.LoginPagepublic <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.LoginPagepublic boolean isRememberMeCheckboxPresent()
public String getSuccessMessage()
public String getError()
Copyright © 2019 Atlassian. All rights reserved.