com.atlassian.confluence.pageobjects.page.content
Class AbstractEditorPage<T extends AbstractViewPage,U extends AbstractEditorPage>

java.lang.Object
  extended by com.atlassian.confluence.pageobjects.page.ConfluenceAbstractPage
      extended by com.atlassian.confluence.pageobjects.page.content.AbstractEditorPage<T,U>
All Implemented Interfaces:
com.atlassian.pageobjects.Page
Direct Known Subclasses:
AbstractEditTemplatePage, EditorPage

public abstract class AbstractEditorPage<T extends AbstractViewPage,U extends AbstractEditorPage>
extends ConfluenceAbstractPage

Represents a page that includes an Editor.

Since:
4.1

Field Summary
 
Fields inherited from class com.atlassian.confluence.pageobjects.page.ConfluenceAbstractPage
driver, pageBinder, pageElementFinder, timeouts, waiter
 
Constructor Summary
AbstractEditorPage(java.lang.Class<T> classWhenSaving, java.lang.Class<U> classWhenFailing, java.lang.String pageMetaIdentifier)
           
 
Method Summary
 T cancel()
           
 void cancelDoNotBind()
          Deprecated. since 5.4 use Editor.clickCancel().
 void clearSessionToken()
           
 void clickRedoButton()
          Perform click action to Redo Button in toolbar of editor
 void clickUndoButton()
          Perform click action to Undo Button in toolbar of editor
 void doWaitUntilTinyMceIsInit()
           
 AbstractEditorPage edit()
          Click edit from the preview screen.
 Breadcrumbs getBreadcrumbs()
           
 EditorContent getContent()
          Deprecated. since 5.4 use Editor.getContent()
 Editor getEditor()
           
 java.util.List<java.lang.String> getErrorMessages()
           
 ImageBrowserDialog getImageBrowserDialog()
           
 ImagePropertyPanel getImagePropertyPanel()
           
 Location getLocation()
           
 PageLayoutMenu getPageLayoutMenu()
          Deprecated. since 5.4 don't use this (since 5.2 there is no PageLayoutMenu)
 java.lang.String getTitle()
           
 java.util.List<java.lang.String> getWarningMessages()
           
 com.atlassian.pageobjects.elements.query.TimedCondition hasDraftStatus()
          Deprecated. since 5.4 use Editor.hasDraftStatus()
 com.atlassian.pageobjects.elements.query.TimedCondition hasExistingDraftMessage()
          Is a message displayed about there being a pre-existing draft for this page?
 com.atlassian.pageobjects.elements.query.TimedCondition hasPreviewContent(java.lang.String string)
          Deprecated. since 5.4 use Editor.hasPreviewContent(String)
 boolean hasRestrictionsSet()
          Deprecated. since 5.4 use Editor.hasRestrictionsSet()
 com.atlassian.pageobjects.elements.query.TimedQuery<java.lang.Boolean> hasViewAutosavedChanges()
          Deprecated. since 5.4 use Editor.hasViewAutosavedChanges()
 com.atlassian.pageobjects.elements.query.TimedQuery<java.lang.Boolean> hasViewPreviousChanges()
           
 boolean isCancelVisibleNow()
          Deprecated. since 5.4 use Editor.isCancelVisiableNow()
 com.atlassian.pageobjects.elements.query.TimedCondition isDirty()
          Deprecated. since 5.4 use Editor.isDirty()
 boolean isPermissionsSet()
          Deprecated. since 5.4 Editor.hasRestrictionsSet()
 com.atlassian.pageobjects.elements.query.TimedCondition isQuickEdit()
          Deprecated. since 5.4 use Editor.isQuickEdit()
 boolean isRestrictionsButtonVisible()
          Deprecated. since 5.4 use Editor.isRestrictionsButtonVisible().
 boolean isTitleEditable()
           
 com.atlassian.pageobjects.elements.query.TimedQuery<java.lang.Boolean> isTitleFocused()
           
 com.atlassian.pageobjects.elements.query.TimedQuery<java.lang.Boolean> isTitleSelected()
           
 ViewDraftDiffDialog openDraftChangesDialogFromAutosave()
          Deprecated. since 5.4 use Editor.openDraftChangesDialogFromAutosave()
 ViewDraftDiffDialog openDraftChangesDialogFromWarning()
           
 InsertMenu openInsertMenu()
           
 LabelsDialog openLabelsDialog()
          Deprecated. since 5.4 use Editor.openLabelsDialog()
 MacroBrowserDialog openMacroBrowser()
           
 MovePageDialog openMovePageDialog()
          Deprecated. since 5.4 use Editor.openMovePageDialog() .
 PageRestrictionsDialog openRestrictionsDialog()
          Deprecated. since 5.4 use Editor.openRestrictionsDialog()
 WikiMarkupDialog openWikiMarkupDialog()
           
 T overwrite()
           
 void preview()
          Deprecated. since 5.4 use Editor.clickPreview()
 T save()
           
 U saveAndExpectToFail()
           
 T saveWithEnterInVersionComment()
           
 ViewPage saveWithKeyboardShortcut()
           
 AbstractEditorPage<T,U> setTitle(java.lang.String title)
           
 void setVersionComment(java.lang.String versionCommentText)
          Deprecated. since 5.4 use Editor.setVersionComment(String)
 PageLayout2Toolbar showPageLayout2Menu()
          Deprecated. since 5.4 use Editor.showPageLayout2Menu().
 
Methods inherited from class com.atlassian.confluence.pageobjects.page.ConfluenceAbstractPage
back, doWait, 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, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.pageobjects.Page
getUrl
 

Constructor Detail

AbstractEditorPage

public AbstractEditorPage(java.lang.Class<T> classWhenSaving,
                          java.lang.Class<U> classWhenFailing,
                          java.lang.String pageMetaIdentifier)
Method Detail

doWaitUntilTinyMceIsInit

public void doWaitUntilTinyMceIsInit()

setTitle

public AbstractEditorPage<T,U> setTitle(java.lang.String title)

getTitle

public java.lang.String getTitle()

getContent

@Deprecated
public EditorContent getContent()
Deprecated. since 5.4 use Editor.getContent()


getEditor

public Editor getEditor()

getPageLayoutMenu

@Deprecated
public PageLayoutMenu getPageLayoutMenu()
Deprecated. since 5.4 don't use this (since 5.2 there is no PageLayoutMenu)


showPageLayout2Menu

@Deprecated
public PageLayout2Toolbar showPageLayout2Menu()
Deprecated. since 5.4 use Editor.showPageLayout2Menu().


getLocation

public Location getLocation()

cancel

public T cancel()

cancelDoNotBind

@Deprecated
public void cancelDoNotBind()
Deprecated. since 5.4 use Editor.clickCancel().

Cancel buttons can really go to different places, particularly on create. Use this if you don't need a pageobject returned.


isCancelVisibleNow

@Deprecated
public boolean isCancelVisibleNow()
Deprecated. since 5.4 use Editor.isCancelVisiableNow()

Returns immediately true or false according to whether a cancel button is immediately present and visible. Does not throw an exception if it can't find the element.


save

public T save()

overwrite

public T overwrite()

saveAndExpectToFail

public U saveAndExpectToFail()

isTitleEditable

public boolean isTitleEditable()

setVersionComment

@Deprecated
public void setVersionComment(java.lang.String versionCommentText)
Deprecated. since 5.4 use Editor.setVersionComment(String)


saveWithEnterInVersionComment

public T saveWithEnterInVersionComment()

saveWithKeyboardShortcut

public ViewPage saveWithKeyboardShortcut()

clearSessionToken

public void clearSessionToken()

getImagePropertyPanel

public ImagePropertyPanel getImagePropertyPanel()

getImageBrowserDialog

public ImageBrowserDialog getImageBrowserDialog()

getErrorMessages

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

getWarningMessages

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

openMacroBrowser

public MacroBrowserDialog openMacroBrowser()

openWikiMarkupDialog

public WikiMarkupDialog openWikiMarkupDialog()

openInsertMenu

public InsertMenu openInsertMenu()

openLabelsDialog

@Deprecated
public LabelsDialog openLabelsDialog()
Deprecated. since 5.4 use Editor.openLabelsDialog()


getBreadcrumbs

public Breadcrumbs getBreadcrumbs()

openMovePageDialog

@Deprecated
public MovePageDialog openMovePageDialog()
Deprecated. since 5.4 use Editor.openMovePageDialog() .


isRestrictionsButtonVisible

@Deprecated
public boolean isRestrictionsButtonVisible()
Deprecated. since 5.4 use Editor.isRestrictionsButtonVisible().


openRestrictionsDialog

@Deprecated
public PageRestrictionsDialog openRestrictionsDialog()
Deprecated. since 5.4 use Editor.openRestrictionsDialog()


hasRestrictionsSet

@Deprecated
public boolean hasRestrictionsSet()
Deprecated. since 5.4 use Editor.hasRestrictionsSet()


preview

@Deprecated
public void preview()
Deprecated. since 5.4 use Editor.clickPreview()


hasDraftStatus

public com.atlassian.pageobjects.elements.query.TimedCondition hasDraftStatus()
Deprecated. since 5.4 use Editor.hasDraftStatus()

Returns a timed condition for which true means the little "Draft autosaved message" is visible.


hasViewAutosavedChanges

@Deprecated
public com.atlassian.pageobjects.elements.query.TimedQuery<java.lang.Boolean> hasViewAutosavedChanges()
Deprecated. since 5.4 use Editor.hasViewAutosavedChanges()


hasViewPreviousChanges

public com.atlassian.pageobjects.elements.query.TimedQuery<java.lang.Boolean> hasViewPreviousChanges()

hasPreviewContent

@Deprecated
public com.atlassian.pageobjects.elements.query.TimedCondition hasPreviewContent(java.lang.String string)
Deprecated. since 5.4 use Editor.hasPreviewContent(String)

After clicking Editor.clickPreview() , does the preview display the given string.


hasExistingDraftMessage

public com.atlassian.pageobjects.elements.query.TimedCondition hasExistingDraftMessage()
Is a message displayed about there being a pre-existing draft for this page?


openDraftChangesDialogFromWarning

public ViewDraftDiffDialog openDraftChangesDialogFromWarning()

openDraftChangesDialogFromAutosave

@Deprecated
public ViewDraftDiffDialog openDraftChangesDialogFromAutosave()
Deprecated. since 5.4 use Editor.openDraftChangesDialogFromAutosave()


isQuickEdit

@Deprecated
public com.atlassian.pageobjects.elements.query.TimedCondition isQuickEdit()
Deprecated. since 5.4 use Editor.isQuickEdit()

Returns true if the editor has been loaded without an extra page load (quick edit) If we load the page in full mode, AJS.Confluence.QuickEdit will be undefined. Make sure you have COMMENT permission if you want to quickedit.


isDirty

@Deprecated
public com.atlassian.pageobjects.elements.query.TimedCondition isDirty()
Deprecated. since 5.4 use Editor.isDirty()


edit

public AbstractEditorPage edit()
Click edit from the preview screen.


isTitleFocused

public com.atlassian.pageobjects.elements.query.TimedQuery<java.lang.Boolean> isTitleFocused()

isTitleSelected

public com.atlassian.pageobjects.elements.query.TimedQuery<java.lang.Boolean> isTitleSelected()

isPermissionsSet

@Deprecated
public boolean isPermissionsSet()
Deprecated. since 5.4 Editor.hasRestrictionsSet()

Check hidden fields where permission is stored retuning true if any permissions has been set.


clickUndoButton

public void clickUndoButton()
Perform click action to Undo Button in toolbar of editor


clickRedoButton

public void clickRedoButton()
Perform click action to Redo Button in toolbar of editor



Copyright © 2003-2014 Atlassian. All Rights Reserved.