com.atlassian.jira.pageobjects.pages
Class AbstractJiraPage

java.lang.Object
  extended by com.atlassian.jira.pageobjects.pages.AbstractJiraPage
All Implemented Interfaces:
com.atlassian.pageobjects.Page
Direct Known Subclasses:
AbstractActorSelectionPage, AbstractDeleteLinkPage, AbstractIssueNavigatorPage, AbstractJiraAdminPage, AbstractJiraTabPage, AbstractProjectConfigPageTab, AddCustomFieldPage, AddIssueTypePage, AddPermissionPage, AddProjectPage, AddSubtaskTypePage, AddUserPage, AdminSetupPage, AdvancedPropertiesPage, AnalyticsSetupPage, AnnouncementBannerPage, ApplicationSetupPage, AssociateCustomFieldToScreenPage, BulkEdit, BulkEditGroupMembersPage, ChangeFieldSchemePage, ChangeIssueTypeSchemePage, ChooseOperation, ConfigureFieldConfigurationSchemePage, ConfigureIssueTypeScreenSchemePage, ConfigurePortalPages, ConfigureScreen, ConfigureScreenScheme, ConvertIssuePage, CopyFieldConfigurationSchemePage, CreateCustomFieldPage, CreateIssueDetailsPage, CreateIssuePage, DashboardPage, DatabaseSetupPage, DeleteFieldConfigurationSchemePage, DeleteGroupPage, DeletePermissionPage, DeleteProjectPage, DeleteUserPage, EditApplicationPropertiesPage, EditDefaultFieldConfigPage, EditDetails, EditFieldConfigPage, EditGeneralConfigurationPage, EditIssueSecurityScheme, EditIssueTypeSchemePage, EditNotificationsPage, EditOutgoingMailServersPage, EditPermissionScheme, EditPermissionsPage, EditProfilePage, EditUserDetailsPage, EditUserGroupsPage, EditUserPasswordPage, EditWorkflowScheme, FieldsPanel, GenericPageWithWarningMessage, GlobalPermissionsPage, GroupBrowserPage, IndexAdminPage, IndexProgressPage, IndexProjectPage, IssueSecurityPage, JiraLoginPage, JiraWebSudoPage, LicenseSetupPage, LogoutPage, MailSetupPage, ManageFiltersPage, ManageIssueTypeSchemePage, ManageSubtasksPage, MinimalContentJiraPage, MoveIssueConfirmation, MoveIssuePage, MoveIssueUpdateFields, MoveIssueUpdateStatus, MoveSubtaskChooseOperation, MoveSubtaskParentPage, NotificationsPage, PluginsOverviewPage, ProjectConfigErrorPage, ProjectConfigPageNotFound, QuickLoginPage, RestoreCompleted, RestoreInProgressPage, RolesPage, SelectCvsModules, SelectIssueSecurityScheme, SelectIssueTypeScreenScheme, SelectPermissionScheme, SelectWorkflowScheme, SharedDashboardsPage, SharedFiltersPage, SignupPage, SignupPage.SignupBlocked, StartDraftWorkflowSchemeMigrationPage, SystemInfo, TransitionOperationConfirmation, TransitionOperationDetails, TransitionsDetails, UalConfigurePage, UserAvatarDialog, ViewCustomFields, ViewDefaultProjectRoleActorsPage, ViewFieldConfigurationSchemesPage, ViewFieldConfigurationsPage, ViewFieldScreenSchemesPage, ViewFieldScreensPage, ViewGeneralConfigurationPage, ViewIssuePage, ViewIssueTypeScreenSchemesPage, ViewIssueTypesPage, ViewLicensePage, ViewProfilePage, ViewProjectsPage, ViewUserPage, ViewWorkflowSteps, WorkflowDesignerPage

public abstract class AbstractJiraPage
extends Object
implements com.atlassian.pageobjects.Page

Provides a set of common functions that all JIRA pages can do, such as getting the admin menu. Sets the base url for the WebDrivePage class to use which is defined in the jira-base-url system property.

Since:
4.4

Field Summary
protected  com.atlassian.pageobjects.elements.PageElement body
           
protected  com.atlassian.webdriver.AtlassianWebDriver driver
           
protected  com.atlassian.pageobjects.elements.PageElementFinder elementFinder
           
protected  com.atlassian.pageobjects.elements.PageElement footerElement
           
protected  com.atlassian.pageobjects.elements.PageElement metaElement
           
protected  com.atlassian.pageobjects.PageBinder pageBinder
           
protected  com.atlassian.pageobjects.elements.timeout.Timeouts timeouts
           
 
Constructor Summary
AbstractJiraPage()
           
 
Method Summary
<P> P
back(Class<P> binder, Object... arguments)
           
 String createXsrfUrl(String origUrl)
           
 void doWait()
           The default doWait for JIRA is defined in terms of isAt().
 void execKeyboardShortcut(CharSequence... keys)
           
 JiraHeader getHeader()
           
 String getPageTitle()
           
 String getXsrfToken()
           
 boolean isAdmin()
           
abstract  com.atlassian.pageobjects.elements.query.TimedCondition isAt()
          Timed condition checking if we're at given page.
 boolean isLoggedIn()
           
 
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

timeouts

@Inject
protected com.atlassian.pageobjects.elements.timeout.Timeouts timeouts

pageBinder

@Inject
protected com.atlassian.pageobjects.PageBinder pageBinder

elementFinder

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

driver

@Inject
protected com.atlassian.webdriver.AtlassianWebDriver driver

body

protected com.atlassian.pageobjects.elements.PageElement body

footerElement

protected com.atlassian.pageobjects.elements.PageElement footerElement

metaElement

protected com.atlassian.pageobjects.elements.PageElement metaElement
Constructor Detail

AbstractJiraPage

public AbstractJiraPage()
Method Detail

getHeader

public JiraHeader getHeader()

doWait

public void doWait()

The default doWait for JIRA is defined in terms of isAt().


execKeyboardShortcut

public void execKeyboardShortcut(CharSequence... keys)

getPageTitle

public String getPageTitle()

getXsrfToken

public String getXsrfToken()

createXsrfUrl

public String createXsrfUrl(String origUrl)

isAt

public abstract com.atlassian.pageobjects.elements.query.TimedCondition isAt()
Timed condition checking if we're at given page.

Returns:
timed condition checking, if the test is at given page

isLoggedIn

public boolean isLoggedIn()

isAdmin

public boolean isAdmin()

back

public <P> P back(Class<P> binder,
                  Object... arguments)


Copyright © 2002-2014 Atlassian. All Rights Reserved.