public class OnDemandLoginPage extends AbstractBambooPage implements com.atlassian.pageobjects.page.LoginPage
Modifier and Type | Field and Description |
---|---|
static String |
URI |
driver, elementFinder, pageBinder, testedProduct
Constructor and Description |
---|
OnDemandLoginPage() |
Modifier and Type | Method and Description |
---|---|
String |
getUrl() |
com.atlassian.pageobjects.elements.PageElement |
indicator()
This must return an element whose presence indicates that we're on given page.
|
protected com.atlassian.pageobjects.elements.query.TimedCondition |
isPageLoaded()
This indicates that the page has loaded and the presence of indicator may be verified.
|
<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,
Class<M> nextPage) |
BambooDashboardPage |
login(TestUser user)
Login with default scenario - ending up on the dashboard.
|
<M extends com.atlassian.pageobjects.Page> |
login(TestUser user,
Class<M> nextPage) |
BambooDashboardPage |
loginAsSysAdmin()
Login as sysadmin expecting dashboard as the next page - the default scenario.
|
<M extends com.atlassian.pageobjects.Page> |
loginAsSysAdmin(Class<M> nextPage) |
doWait, ensureIndicatorPresent, getHeader, isAdmin, isLoggedIn
public static final String URI
public String getUrl()
getUrl
in interface com.atlassian.pageobjects.Page
protected com.atlassian.pageobjects.elements.query.TimedCondition isPageLoaded()
AbstractBambooPage
isPageLoaded
in class AbstractBambooPage
public com.atlassian.pageobjects.elements.PageElement indicator()
AbstractBambooPage
indicator
in class AbstractBambooPage
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(@NotNull TestUser user, Class<M> nextPage)
public BambooDashboardPage login(@NotNull TestUser user)
user
- userpublic <M extends com.atlassian.pageobjects.Page> M loginAsSysAdmin(Class<M> nextPage)
loginAsSysAdmin
in interface com.atlassian.pageobjects.page.LoginPage
public BambooDashboardPage loginAsSysAdmin()
Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.