com.atlassian.bamboo.pageobjects.core
Class AbstractBambooPage

java.lang.Object
  extended by com.atlassian.bamboo.pageobjects.core.AbstractBambooPage
All Implemented Interfaces:
com.atlassian.pageobjects.Page
Direct Known Subclasses:
AbstractBambooAdminPage, AbstractBambooSetupPage, AuthorsPage, BambooAdminHomePage, BambooDashboardPage, BambooLoginPage, CreatePlanPage, EditGroupPage, EditUserPage, GroupsAdminPage, PlanSummaryPage, StageConfigurationPage, TaskConfigurationPage, UserManagementAdminPage, UsersAdminPage

public abstract class AbstractBambooPage
extends java.lang.Object
implements com.atlassian.pageobjects.Page


Field Summary
protected  com.atlassian.webdriver.AtlassianWebDriver driver
           
protected  com.atlassian.pageobjects.elements.PageElementFinder elementFinder
           
protected  com.atlassian.pageobjects.PageBinder pageBinder
           
protected  BambooTestedProduct testedProduct
           
 
Constructor Summary
AbstractBambooPage()
           
 
Method Summary
 void doWait()
          

This uses isPageLoaded() by default.

 void ensureIndicatorPresent()
          

Checks for presence of indicator() by default.

 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.pageobjects.Page
getUrl
 

Field Detail

driver

@Inject
protected com.atlassian.webdriver.AtlassianWebDriver driver

pageBinder

@Inject
protected com.atlassian.pageobjects.PageBinder pageBinder

elementFinder

@Inject
protected com.atlassian.pageobjects.elements.PageElementFinder elementFinder

testedProduct

@Inject
protected BambooTestedProduct testedProduct
Constructor Detail

AbstractBambooPage

public AbstractBambooPage()
Method Detail

doWait

public void doWait()

This uses isPageLoaded() by default.

If different wait functionality is required, just override this method.


ensureIndicatorPresent

public void ensureIndicatorPresent()

Checks for presence of indicator() by default.

If different wait functionality is required, just override this method.


isPageLoaded

protected com.atlassian.pageobjects.elements.query.TimedCondition isPageLoaded()
This indicates that the page has loaded and the presence of indicator may be verified.

Returns:
time condition indication that the page has loaded

indicator

public abstract com.atlassian.pageobjects.elements.PageElement indicator()
This must return an element whose presence indicates that we're on given page.

Returns:
element uniquely identifying given page

isAdmin

public boolean isAdmin()

isLoggedIn

public boolean isLoggedIn()

getHeader

public BambooHeader getHeader()


Copyright © 2011 Atlassian. All Rights Reserved.