com.atlassian.confluence.pageobjects.page
Class ConfluenceAbstractPage

java.lang.Object
  extended by com.atlassian.confluence.pageobjects.page.ConfluenceAbstractPage
All Implemented Interfaces:
com.atlassian.pageobjects.Page
Direct Known Subclasses:
AbstractEditorPage, AbstractEditStylesheetPage, AbstractSpaceExport, AbstractViewPage, AddSpacePage, AddVersionsPage, BrowseSpacePage, ChangePasswordPage, ChooseSpaceThemePage, ColorSchemePage, ConfigureDatabaseConnectionPage, ConfigureDatabasePage, ConfluenceAdminHomePage, ConfluenceAlaCarteJiraLoginPage, ConfluenceAlaCarteLoginPage, ConfluenceForgotPasswordPage, ConfluenceLoginPage, ConfluenceSignupPage, CopySpacePage, CreatePageTemplate, DashboardPage, DatabaseTypePage, DraftsPage, EditAttachmentPage, EditGeneralConfigurationPage, EditGlobalPermissionsPage, EditRestrictedPage, EditSecurityConfigurationPage, EditSpacePermissionsPage, EditSpacesConfigurationPage, EditUserEditorSettingsPage, EditUserProfilePage, ExternalGadgetsPage, GalleryMacro, LabelSearchPage, LicensePage, ListPageTemplates, LoadContentPage, MailboxImportPage, ManageAddonsPage, OfficeConnectorPreviewPage, PagesCollectorPage, PageTemplateWizard, PeopleDirectoryPage, PluginsPage, PopMailConfigPage, RebuildAncestorTablePage, SearchIndexesPage, SearchPage, SearchResultPage, SelectUserManagementPage, SetupCompletePage, SetupSystemAdministratorPage, SiteExportResult, SpaceDirectoryPage, SpaceExportTree, StartSetupPage, SupportRequestTab, SupportToolsPage, UPMAuditLogPage, UPMCompatibilityCheckPage, UsersAdmin, UserWatchesPage, ViewAttachmentsPage, ViewGlobalStylesheetPage, ViewMailServersPage, ViewPageTemplate, ViewProfilePage, ViewRestrictedPage, ViewSpaceAttachmentsPage, ViewSpaceLabelsAlphabetical, ViewSpaceLabelsHeatmap, ViewSpacePagesAlphabetical, ViewSpacePagesOrphaned, ViewSpacePagesTree, ViewSpacePagesUndefined, ViewSpaceRecentBlogs, ViewSpaceRecentPages, ViewSpacesConfigurationPage, ViewSpaceStylesheetPage, ViewSpaceSummaryPage, ViewSpaceTrashPage, ViewTemplatePage, ViewUserProfilePage, ViewUserSettingsPage

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

Base class for all Confluence pages.

Since:
4.1

Field Summary
protected  com.atlassian.webdriver.AtlassianWebDriver driver
           
protected  JavascriptTimedQueryFactory jsQueryFactory
           
protected  com.atlassian.pageobjects.PageBinder pageBinder
           
protected  com.atlassian.pageobjects.elements.PageElementFinder pageElementFinder
           
protected  com.atlassian.pageobjects.elements.timeout.Timeouts timeouts
           
protected  com.atlassian.webdriver.waiter.Waiter waiter
           
protected  com.atlassian.pageobjects.elements.query.Poller.WaitTimeout waitTimeout
           
 
Constructor Summary
ConfluenceAbstractPage()
           
 
Method Summary
<P> P
back(Class<P> pageClass, Object... args)
           
 void doWait()
           
 org.openqa.selenium.Alert getAlert()
          Waits until an alert is triggered in the browser
<M extends PageComponent>
M
getComponent(Class<M> componentClass, Object... args)
          This method is used to retrieve elements that are added via a plugin.
 ConfluenceHeader getHeader()
           
 com.atlassian.pageobjects.components.aui.AuiInlineDialog getInlineDialog(org.openqa.selenium.By locator, String dialogId)
           
 ConfluenceMainHeader getMainHeader()
           
 String getMetadata(String name)
           
 long getMetadataLong(String name)
           
 String getPageHeadingColor()
           
 boolean isDarkFeatureEnabled(String darkFeatureId)
           
 boolean isLoggedIn()
           
 AddMenu openAddMenu()
           
 BrowseMenu openBrowseMenu()
           
 HelpMenu openHelpMenu()
           
 ToolsMenu openToolsMenu()
           
 ConfluenceUserMenu openUserMenu()
           
 void sendKeyboardShortcut(String keys)
           
 void sendKeyboardShortcutAndWaitForCondition(String keys, com.google.common.base.Function<org.openqa.selenium.WebDriver,Boolean> waitFunction, int seconds)
           
static void setSetupComplete(boolean setupComplete)
           
 
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

waiter

@Inject
protected com.atlassian.webdriver.waiter.Waiter waiter

pageElementFinder

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

timeouts

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

jsQueryFactory

@Inject
protected JavascriptTimedQueryFactory jsQueryFactory

waitTimeout

protected final com.atlassian.pageobjects.elements.query.Poller.WaitTimeout waitTimeout
Constructor Detail

ConfluenceAbstractPage

public ConfluenceAbstractPage()
Method Detail

openBrowseMenu

public BrowseMenu openBrowseMenu()

openUserMenu

public ConfluenceUserMenu openUserMenu()

openAddMenu

public AddMenu openAddMenu()

openToolsMenu

public ToolsMenu openToolsMenu()

openHelpMenu

public HelpMenu openHelpMenu()

doWait

public void doWait()

setSetupComplete

public static void setSetupComplete(boolean setupComplete)

getHeader

public ConfluenceHeader getHeader()

getMainHeader

public ConfluenceMainHeader getMainHeader()

getAlert

public org.openqa.selenium.Alert getAlert()
Waits until an alert is triggered in the browser


isLoggedIn

public boolean isLoggedIn()

sendKeyboardShortcut

public void sendKeyboardShortcut(String keys)

sendKeyboardShortcutAndWaitForCondition

public void sendKeyboardShortcutAndWaitForCondition(String keys,
                                                    com.google.common.base.Function<org.openqa.selenium.WebDriver,Boolean> waitFunction,
                                                    int seconds)

getComponent

public <M extends PageComponent> M getComponent(Class<M> componentClass,
                                                Object... args)
This method is used to retrieve elements that are added via a plugin. This allows page objects to be created that are not part of Confluence's core.

Type Parameters:
M - a PageComponent object
Parameters:
componentClass - the class of the component
args - any arguments needed to construct the component object
Returns:
a bound PageComponent object

isDarkFeatureEnabled

public boolean isDarkFeatureEnabled(String darkFeatureId)

getPageHeadingColor

public String getPageHeadingColor()

getInlineDialog

public com.atlassian.pageobjects.components.aui.AuiInlineDialog getInlineDialog(org.openqa.selenium.By locator,
                                                                                String dialogId)

getMetadata

public String getMetadata(String name)

getMetadataLong

public long getMetadataLong(String name)

back

public <P> P back(Class<P> pageClass,
                  Object... args)


Copyright © 2003–2015 Atlassian. All rights reserved.