com.atlassian.confluence.pageobjects.page.content
Class ViewPage

java.lang.Object
  extended by com.atlassian.confluence.pageobjects.page.ConfluenceAbstractPage
      extended by com.atlassian.confluence.pageobjects.page.content.AbstractViewPage
          extended by com.atlassian.confluence.pageobjects.page.content.ViewPage
All Implemented Interfaces:
com.atlassian.pageobjects.Page
Direct Known Subclasses:
ViewPageAddComment, ViewPageAnonymous

public class ViewPage
extends AbstractViewPage

The view content page.

Since:
4.1

Field Summary
static java.lang.String PAGE_ID_META_IDENTIFIER
           
static java.lang.String SPACE_KEY_META_IDENTIFIER
           
 
Fields inherited from class com.atlassian.confluence.pageobjects.page.content.AbstractViewPage
pageEntity
 
Fields inherited from class com.atlassian.confluence.pageobjects.page.ConfluenceAbstractPage
driver, pageBinder, pageElementFinder, timeouts, waiter, waitTimeout
 
Constructor Summary
ViewPage()
           
ViewPage(AbstractPageEntity pageEntity)
           
ViewPage(java.lang.String pageId)
           
 
Method Summary
 com.atlassian.pageobjects.elements.query.TimedCondition addCommentRTEVisibleCondition()
           
 com.atlassian.pageobjects.elements.query.TimedQuery<java.lang.Boolean> areEditorResourcesPreLoaded()
          True if the page has preloaded all the resources the editor needs to initialise
 boolean canEdit()
           
 com.atlassian.pageobjects.elements.query.TimedCondition canEditLabels()
           
 void clickOnBody()
           
 AbstractViewPage clickPageModificationLink()
           
 com.atlassian.pageobjects.elements.query.TimedCondition commentsSectionPresentCondition()
           
 com.atlassian.pageobjects.elements.query.TimedCondition contentVisibleCondition()
           
 void doWait()
           
 EditContentPage edit()
           
 com.atlassian.pageobjects.elements.query.TimedCondition editorContainerVisibleCondition()
           
 EditContentPage editShortcut()
          Triggers edit shortcut and binds editor content page
 EditContentPage editShortcut(java.lang.String extraKeys)
          Triggers edit shortcut and binds editor content page
 QuickReloadDialog findQuickReloadDialog()
           
 Breadcrumbs getBreadcrumbs()
           
 CommentsSection getComments()
           
 java.util.List<java.lang.String> getLabels()
           
 PageLabelsSection getLabelSection()
           
 LikeSection getLikeSection()
           
 com.atlassian.pageobjects.elements.PageElement getMainContent()
           
 AbstractPageEntity getPageEntity()
           
 long getPageId()
           
 java.lang.Long getPageRenderTimeStamp()
           
 RenderedContent getRenderedContent()
           
 java.lang.String getSpaceKey()
           
 java.lang.String getTextContent()
           
 java.lang.String getTextContent(java.lang.String tagName)
           
 java.lang.String getTextContentDocTheme()
           
 java.lang.String getTitle()
           
 java.lang.String getUrl()
           
 WatchDialog getWatchDialog()
           
 com.atlassian.pageobjects.elements.query.TimedCondition hasPageRestrictions()
           
 boolean isFavourite()
           
 KeyboardShortcutHelperDialog openHelpDialogWithShortcut()
           
 LabelsDialog openLabelsDialog()
           
 LabelsDialog openLabelsDialogViaKeyboard()
           
 PageRestrictionsDialog openRestrictionsDialog()
           
 com.atlassian.pageobjects.elements.query.TimedCondition pageCommentsVisibleCondition()
           
 boolean pageHasElement(java.lang.String element)
           
 com.atlassian.pageobjects.elements.query.TimedCondition quickCommentPromptVisibleCondition()
           
 java.lang.String toString()
           
 void waitUntilEditorResourcesArePreloaded()
           
 
Methods inherited from class com.atlassian.confluence.pageobjects.page.ConfluenceAbstractPage
back, getAlert, getComponent, getHeader, getInlineDialog, getMainHeader, getMetadata, getMetadataLong, getPageHeadingColor, isDarkFeatureEnabled, isLoggedIn, openAddMenu, openBrowseMenu, openHelpMenu, openToolsMenu, openUserMenu, sendKeyboardShortcut, sendKeyboardShortcutAndWaitForCondition, setSetupComplete
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PAGE_ID_META_IDENTIFIER

public static final java.lang.String PAGE_ID_META_IDENTIFIER
See Also:
Constant Field Values

SPACE_KEY_META_IDENTIFIER

public static final java.lang.String SPACE_KEY_META_IDENTIFIER
See Also:
Constant Field Values
Constructor Detail

ViewPage

public ViewPage()

ViewPage

public ViewPage(java.lang.String pageId)

ViewPage

public ViewPage(AbstractPageEntity pageEntity)
Method Detail

doWait

public void doWait()
Overrides:
doWait in class ConfluenceAbstractPage

getUrl

public java.lang.String getUrl()

getPageEntity

public AbstractPageEntity getPageEntity()

isFavourite

public boolean isFavourite()

edit

public EditContentPage edit()

editShortcut

public EditContentPage editShortcut(java.lang.String extraKeys)
Triggers edit shortcut and binds editor content page

Since:
5.5

areEditorResourcesPreLoaded

public com.atlassian.pageobjects.elements.query.TimedQuery<java.lang.Boolean> areEditorResourcesPreLoaded()
True if the page has preloaded all the resources the editor needs to initialise

Since:
5.6

waitUntilEditorResourcesArePreloaded

public void waitUntilEditorResourcesArePreloaded()
Since:
5.6

editShortcut

public EditContentPage editShortcut()
Triggers edit shortcut and binds editor content page

Since:
5.5

getTextContent

public java.lang.String getTextContent()

getTextContentDocTheme

public java.lang.String getTextContentDocTheme()

getTextContent

public java.lang.String getTextContent(java.lang.String tagName)
Parameters:
tagName - html tag name
Returns:
the text in the given tagname in the main content

getMainContent

public com.atlassian.pageobjects.elements.PageElement getMainContent()

getRenderedContent

public RenderedContent getRenderedContent()

getBreadcrumbs

public Breadcrumbs getBreadcrumbs()

getTitle

public java.lang.String getTitle()

getLabelSection

public PageLabelsSection getLabelSection()

getLikeSection

public LikeSection getLikeSection()

getLabels

public java.util.List<java.lang.String> getLabels()

getComments

public CommentsSection getComments()

pageHasElement

public boolean pageHasElement(java.lang.String element)

openHelpDialogWithShortcut

public KeyboardShortcutHelperDialog openHelpDialogWithShortcut()

openLabelsDialog

public LabelsDialog openLabelsDialog()

openLabelsDialogViaKeyboard

public LabelsDialog openLabelsDialogViaKeyboard()

canEdit

public boolean canEdit()

canEditLabels

public com.atlassian.pageobjects.elements.query.TimedCondition canEditLabels()

findQuickReloadDialog

public QuickReloadDialog findQuickReloadDialog()

contentVisibleCondition

public com.atlassian.pageobjects.elements.query.TimedCondition contentVisibleCondition()

pageCommentsVisibleCondition

public com.atlassian.pageobjects.elements.query.TimedCondition pageCommentsVisibleCondition()

commentsSectionPresentCondition

public com.atlassian.pageobjects.elements.query.TimedCondition commentsSectionPresentCondition()

quickCommentPromptVisibleCondition

public com.atlassian.pageobjects.elements.query.TimedCondition quickCommentPromptVisibleCondition()

editorContainerVisibleCondition

public com.atlassian.pageobjects.elements.query.TimedCondition editorContainerVisibleCondition()

clickOnBody

public void clickOnBody()

getPageId

public long getPageId()

getSpaceKey

public java.lang.String getSpaceKey()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

addCommentRTEVisibleCondition

public com.atlassian.pageobjects.elements.query.TimedCondition addCommentRTEVisibleCondition()

getWatchDialog

public WatchDialog getWatchDialog()

openRestrictionsDialog

public PageRestrictionsDialog openRestrictionsDialog()

hasPageRestrictions

public com.atlassian.pageobjects.elements.query.TimedCondition hasPageRestrictions()

clickPageModificationLink

public AbstractViewPage clickPageModificationLink()

getPageRenderTimeStamp

public java.lang.Long getPageRenderTimeStamp()
Since:
5.6


Copyright © 2003-2014 Atlassian. All Rights Reserved.