Class AbstractBambooPage
- java.lang.Object
-
- com.atlassian.bamboo.pageobjects.pages.AbstractBambooPage
-
- All Implemented Interfaces:
com.atlassian.pageobjects.Page
- Direct Known Subclasses:
AbstractAuditLogPage
,AbstractBambooAdminPage
,AbstractBambooSetupPage
,AbstractBranchNavigatorPage
,AbstractDeploymentVersionPage
,AbstractDockerPage
,AbstractNotificationsPage
,AbstractPermissionsPage
,AddGroupPage
,ArtifactConfigurationPage
,ArtifactStoragePage
,AuthorsPage
,BambooAdminHomePage
,BambooDashboardPage
,BambooLoginPage
,BranchesConfigurationPage
,ChangePasswordPage
,CloneChainPlanLimitReachedPage
,CloneDeploymentPage
,ClonePlanPage
,ConfigureBranchNotificationsPage
,ConfigureDeploymentProjectDetailsPage
,ConfigureDeploymentProjectPage
,ConfigureDeploymentProjectVersioning
,ConfigureEnvironmentDetailsPage
,ConfigureEnvironmentMiscellaneousPage
,ConfigureEnvironmentTriggersPage
,ConfigureEnvironmentVariablesPage
,ConfigurePlanTriggersPage
,ConfigureReleaseVersioningPage
,ConfigureSharedCredentialsPage
,ConfirmDeleteDeploymentProjectPage
,ConfirmDeploymentProjectDetailsPage
,CreateChainPlanLimitReachedPage
,CreateEnvironmentPage
,CreatePlanPage
,CreatePlanRepositoryPage
,CreatePlanTasksPage
,CreateProjectPage
,CreateProjectRepositoryPage
,CreateUserPage
,CreateVersionPage
,CurrentBuildQueuePage
,DeletePlanPage
,DeleteProjectRepositoryPage
,DeploymentLogsPage
,DeploymentProjectRepositoryAssignmentPage
,DeploymentResultPage
,EditGroupPage
,EditPlanDetailsPage
,EditProjectDetailsPage
,EditUserProfilePage
,EnvironmentSummaryPage
,EnvironmentViewAgentsPage
,EphemeralAgentTemplateAssignmentPage
,EphemeralAgentTemplatesListPage
,ExecuteDeploymentPage
,FourOhOhPage
,GroupsAdminPage
,JobResultSummaryPage
,JobResultViewLogs
,ManualEncryptionPage
,MiscellaneousConfigurationPage
,MovePlansConfigureDetailsPage
,MovePlansPage
,OAuth2LoginPage
,PersonalAccessTokenCreationPage
,PersonalAccessTokensPage
,PersonalAccessTokenViewPage
,PlanBranchOverview
,PlanHistoryPage
,PlanRepositoryConfigurationPage
,PlanResultLogActivityPage
,PlanResultTestsPage
,PlanResultWebhooksPage
,PlanSummaryPage
,PlanViewAgentsPage
,ProjectRepositoriesPage
,ProjectRepositoryAssignmentPage
,ProjectSummaryPage
,QuarantinedTestsPage
,RenameVersionPage
,RequirementsAwarePage
,ResultJobArtifactsPage
,ResultSummaryCommitsPage
,ResultSummaryMetadataPage
,ResultSummaryPage
,ServerCapabilitiesPage
,SignupPage
,SpecsWizardCreationPage
,TaskConfigurationPage
,TrustedKeysPage.AddTrustedKeyDialogPage
,TrustedKeysPage.DeleteTrustedKeyConfirmationDialog
,UserProfilePage
,UsersAdminPage
,UserSummaryPage
,VariableConfigurationPage
,ViewAgentCapabilitiesPage
,ViewAllDeploymentProjectsPage
,ViewAuthorPage
,ViewDeploymentProjectPage
,ViewEphemeralAgentPodPage
,ViewProjectRepositoriesTypesPage
,ViewProjectsPage
,ViewRepositoryPage
,ViewUserPage
,ViewVersionPage
public abstract class AbstractBambooPage extends Object implements com.atlassian.pageobjects.Page
-
-
Field Summary
Fields Modifier and Type Field Description protected org.openqa.selenium.WebDriver
driver
protected com.atlassian.pageobjects.elements.PageElementFinder
elementFinder
protected com.atlassian.pageobjects.PageBinder
pageBinder
protected com.atlassian.webdriver.utils.element.WebDriverPoller
poller
protected BambooWebDriverTestedProduct
testedProduct
protected com.atlassian.pageobjects.elements.timeout.Timeouts
timeouts
-
Constructor Summary
Constructors Constructor Description AbstractBambooPage()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
click(com.atlassian.pageobjects.elements.PageElement pageElement)
void
doWait()
This usesisPageLoaded()
by default.void
ensureIndicatorPresent()
Checks for presence ofindicator()
by default.BambooFooter
getFooter()
BambooHeader
getHeader()
com.atlassian.pageobjects.elements.timeout.Timeouts
getTimeouts()
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
sendEscapeKey()
protected void
waitUntilElementIsLocated(org.openqa.selenium.By by)
void
waitUntilElementIsNotLocated(org.openqa.selenium.By by)
protected void
waitUntilElementIsNotVisible(org.openqa.selenium.By by)
void
waitUntilElementIsVisible(org.openqa.selenium.By by)
-
-
-
Field Detail
-
driver
@Inject protected org.openqa.selenium.WebDriver driver
-
pageBinder
@Inject protected com.atlassian.pageobjects.PageBinder pageBinder
-
elementFinder
@Inject protected com.atlassian.pageobjects.elements.PageElementFinder elementFinder
-
testedProduct
@Inject protected BambooWebDriverTestedProduct testedProduct
-
poller
@Inject protected com.atlassian.webdriver.utils.element.WebDriverPoller poller
-
timeouts
@Inject protected com.atlassian.pageobjects.elements.timeout.Timeouts timeouts
-
-
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()
-
getFooter
public BambooFooter getFooter()
-
sendEscapeKey
protected void sendEscapeKey()
-
waitUntilElementIsVisible
public void waitUntilElementIsVisible(org.openqa.selenium.By by)
-
waitUntilElementIsNotVisible
protected void waitUntilElementIsNotVisible(org.openqa.selenium.By by)
-
waitUntilElementIsLocated
protected void waitUntilElementIsLocated(org.openqa.selenium.By by)
-
waitUntilElementIsNotLocated
public void waitUntilElementIsNotLocated(org.openqa.selenium.By by)
-
click
protected void click(com.atlassian.pageobjects.elements.PageElement pageElement)
-
getTimeouts
public com.atlassian.pageobjects.elements.timeout.Timeouts getTimeouts()
-
-