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

public class ViewPage
extends AbstractViewPage

The view content page.

Since:
4.1

Field Summary
static String PAGE_ID_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
 
Constructor Summary
ViewPage()
           
ViewPage(AbstractPageEntity pageEntity)
           
ViewPage(String pageId)
           
 
Method Summary
 PageComment addComment()
           
 boolean canEdit()
           
 com.atlassian.pageobjects.elements.query.TimedCondition canEditLabels()
           
 EditorContent clickQuickCommentPrompt()
           
 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()
           
 QuickReloadDialog findQuickReloadDialog()
           
 Breadcrumbs getBreadcrumbs()
           
 CommentsSection getComments()
           
 List<String> getLabels()
           
 PageLabelsSection getLabelSection()
           
 LikeSection getLikeSection()
           
 com.atlassian.pageobjects.elements.PageElement getMainContent()
           
 AbstractPageEntity getPageEntity()
           
 RenderedContent getRenderedContent()
           
 ConfluenceSidebar getSidebar()
           
 String getTextContent()
           
 String getTextContent(String tagName)
           
 String getTitle()
           
 String getUrl()
           
 String getVersionComment()
           
 boolean hasVersionComment()
           
 boolean isFavourite()
           
 KeyboardShortcutHelperDialog openHelpDialogWithShortcut()
           
 LabelsDialog openLabelsDialog()
           
 LabelsDialog openLabelsDialogViaKeyboard()
           
 com.atlassian.pageobjects.elements.query.TimedCondition pageCommentsVisibleCondition()
           
 boolean pageHasElement(String element)
           
 com.atlassian.pageobjects.elements.query.TimedCondition quickCommentPromptVisibleCondition()
           
 ViewPage saveComment()
           
 void toggleShowVersionComment(boolean show)
           
 
Methods inherited from class com.atlassian.confluence.pageobjects.page.ConfluenceAbstractPage
getAlert, getComponent, getHeader, getMainHeader, 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, toString, wait, wait, wait
 

Field Detail

PAGE_ID_META_IDENTIFIER

public static final String PAGE_ID_META_IDENTIFIER
See Also:
Constant Field Values
Constructor Detail

ViewPage

public ViewPage()

ViewPage

public ViewPage(String pageId)

ViewPage

public ViewPage(AbstractPageEntity pageEntity)
Method Detail

doWait

public void doWait()
Overrides:
doWait in class ConfluenceAbstractPage

getUrl

public String getUrl()

getPageEntity

public AbstractPageEntity getPageEntity()

isFavourite

public boolean isFavourite()

edit

public EditContentPage edit()

getTextContent

public String getTextContent()

getTextContent

public String getTextContent(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 String getTitle()

getLabelSection

public PageLabelsSection getLabelSection()

getLikeSection

public LikeSection getLikeSection()

getLabels

public List<String> getLabels()

getComments

public CommentsSection getComments()

hasVersionComment

public boolean hasVersionComment()

pageHasElement

public boolean pageHasElement(String element)

toggleShowVersionComment

public void toggleShowVersionComment(boolean show)

getVersionComment

public String getVersionComment()

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()

getSidebar

public ConfluenceSidebar getSidebar()

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()

clickQuickCommentPrompt

public EditorContent clickQuickCommentPrompt()

saveComment

public ViewPage saveComment()

addComment

public PageComment addComment()


Copyright © 2003-2013 Atlassian. All Rights Reserved.