public abstract class AbstractBambooPage extends Object implements com.atlassian.pageobjects.Page
Modifier and Type | Field and Description |
---|---|
protected com.atlassian.webdriver.AtlassianWebDriver |
driver |
protected com.atlassian.pageobjects.elements.PageElementFinder |
elementFinder |
protected com.atlassian.pageobjects.PageBinder |
pageBinder |
protected com.atlassian.webdriver.utils.element.WebDriverPoller |
poller |
protected BambooTestedProduct |
testedProduct |
Constructor and Description |
---|
AbstractBambooPage() |
Modifier and Type | Method and Description |
---|---|
void |
doWait()
This uses
isPageLoaded() by default. |
void |
ensureIndicatorPresent()
Checks for presence of
indicator() by default. |
BambooFooter |
getFooter() |
BambooHeader |
getHeader() |
abstract com.atlassian.pageobjects.elements.PageElement |
indicator()
This must return an element whose presence indicates that we're on given page.
|
boolean |
isAdmin() |
boolean |
isLoggedIn() |
protected com.atlassian.pageobjects.elements.query.TimedCondition |
isPageLoaded()
This indicates that the page has loaded and the presence of indicator may be verified.
|
protected void |
sendEnterKey() |
protected void |
sendEscapeKey() |
@Inject protected com.atlassian.webdriver.AtlassianWebDriver driver
@Inject protected com.atlassian.pageobjects.PageBinder pageBinder
@Inject protected com.atlassian.pageobjects.elements.PageElementFinder elementFinder
@Inject protected BambooTestedProduct testedProduct
@Inject protected com.atlassian.webdriver.utils.element.WebDriverPoller poller
public void doWait()
This uses isPageLoaded()
by default.
If different wait functionality is required, just override this method.
public void ensureIndicatorPresent()
Checks for presence of indicator()
by default.
If different wait functionality is required, just override this method.
protected com.atlassian.pageobjects.elements.query.TimedCondition isPageLoaded()
public abstract com.atlassian.pageobjects.elements.PageElement indicator()
public boolean isAdmin()
public boolean isLoggedIn()
public BambooHeader getHeader()
public BambooFooter getFooter()
protected void sendEscapeKey()
protected void sendEnterKey()
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.