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

java.lang.Object
  extended by com.atlassian.confluence.pageobjects.page.content.Editor

public class Editor
extends Object

Represents a Content Editor panel, including the top and bottom toolbars, but not including things like page titles. Note that this includes some fields that are only present for blogs, or pages, as well as ones present for comments.


Field Summary
protected  org.openqa.selenium.WebDriver driver
           
protected  com.atlassian.pageobjects.elements.timeout.Timeouts timeouts
           
 
Constructor Summary
Editor()
           
 
Method Summary
 void clickCancel()
           
 void clickEdit()
           
 ImageBrowserDialog clickInsertFilesButton()
          Perform click action to Inser files button in editor toolbar
 void clickOverwrite()
           
 EditorPreview clickPreview()
           
 void clickSave()
           
 void clickSaveAndVerifyNoPageReload()
           
 void clickSaveAndWaitForPageChange()
           
 void closePageLayout2Menu()
          Close page layouts toolbar
 void closeSearchAndReplaceMenu()
           
 EditorContent getContent()
           
 LinkPropertyPanel getLinkPropertyPanel()
          Deprecated. since 5.7, please use EditorContent.getEmbededLinks() and click on the individual link to get their link property panel.
 com.atlassian.pageobjects.elements.query.TimedQuery<String> getSaveButtonText()
           
 SourceEditor getSourceEditor()
           
 EditorMainToolbar getToolbar()
           
 com.atlassian.pageobjects.elements.PageElement getToolTip()
           
 long getUndoLimit()
           
 String getVersionComment()
           
 com.atlassian.pageobjects.elements.query.TimedCondition hasDraftStatus()
           
 boolean hasNotifyWatchers()
           
 com.atlassian.pageobjects.elements.query.TimedCondition hasPreviewContent(String string)
          Deprecated. since 5.5 use EditorPreview.containsContent(String), which waits for visibility too and uses pageElements instead of dodgy js.
 boolean hasRestrictionsSet()
           
 boolean hasVersionComment()
           
 com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> hasViewAutosavedChanges()
           
 void hoverOverSave()
           
 boolean isCancelVisiableNow()
          Deprecated. Since 5.7. Mis-spelled method name. Retained for backwards compatibility. Use isCancelVisibleNow()
 boolean isCancelVisibleNow()
           
 com.atlassian.pageobjects.elements.query.TimedCondition isDirty()
           
 boolean isEditBlogPostUrl()
          Returns true if the page url matches a valid blog post edition url.
 com.atlassian.pageobjects.elements.query.TimedCondition isEditButtonVisible()
          The editor's edit button, visible when you are in preview within the editor.
 com.atlassian.pageobjects.elements.query.TimedCondition isEditorCurrentlyActive()
           
 boolean isEditPageUrl()
          Deprecated. since 5.5 use EditContentPage.hasEditPageUrl()
 com.atlassian.pageobjects.elements.query.TimedCondition isEditPageUrlTimed()
          If the page url matches a valid page edition url.
 com.atlassian.pageobjects.elements.query.TimedCondition isQuickEdit()
           
 com.atlassian.pageobjects.elements.query.TimedCondition isReady()
          Deprecated. since 5.6 - Use isEditorCurrentlyActive() to check if tinymce is currently active instead.
 boolean isRestrictionsButtonVisible()
           
 com.atlassian.pageobjects.elements.query.TimedCondition isSearchButtonVisible()
           
 com.atlassian.pageobjects.elements.query.TimedCondition isTableToolbarOpen()
          true if the Table toolbar is visible
 com.atlassian.pageobjects.elements.query.TimedCondition isTinyMceInit()
          Deprecated. since 5.6- Use isEditorCurrentlyActive() to check if tinymce is currently active instead.
 com.atlassian.pageobjects.elements.query.TimedCondition isUndoEnabled()
           
 ViewDraftDiffDialog openDraftChangesDialogFromAutosave()
           
 ImageBrowserDialog openImageDialog()
           
 InsertDropdownMenu openInsertMenu()
           
 LabelsDialog openLabelsDialog()
           
 LinkBrowserDialog openLinkBrowserDialog()
           
 MacroBrowserDialog openMacroBrowser()
           
 MovePageDialog openMovePageDialog()
           
 PageRestrictionsDialog openRestrictionsDialog()
           
 void openSourceEditor()
           
 WikiMarkupDialog openWikiMarkupDialog()
           
 ViewPage saveWithKeyboardShortcut()
           
 void setUndoLimit(long limit)
           
 void setVersionComment(String versionCommentText)
           
 PageLayout2Toolbar showPageLayout2Menu()
           
 SearchAndReplaceToolbar showSearchAndReplaceMenu()
           
 void undo()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

timeouts

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

driver

@Inject
protected org.openqa.selenium.WebDriver driver
Constructor Detail

Editor

public Editor()
Method Detail

showPageLayout2Menu

public PageLayout2Toolbar showPageLayout2Menu()

isUndoEnabled

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

undo

public void undo()

closePageLayout2Menu

public void closePageLayout2Menu()
Close page layouts toolbar

Since:
5.6

showSearchAndReplaceMenu

public SearchAndReplaceToolbar showSearchAndReplaceMenu()

closeSearchAndReplaceMenu

public void closeSearchAndReplaceMenu()

isSearchButtonVisible

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

clickCancel

public void clickCancel()

openSourceEditor

public void openSourceEditor()

getSourceEditor

public SourceEditor getSourceEditor()

isCancelVisiableNow

@Deprecated
public boolean isCancelVisiableNow()
Deprecated. Since 5.7. Mis-spelled method name. Retained for backwards compatibility. Use isCancelVisibleNow()


isCancelVisibleNow

public boolean isCancelVisibleNow()

clickSave

public void clickSave()

saveWithKeyboardShortcut

public ViewPage saveWithKeyboardShortcut()

clickOverwrite

public void clickOverwrite()

getSaveButtonText

public com.atlassian.pageobjects.elements.query.TimedQuery<String> getSaveButtonText()

hoverOverSave

public void hoverOverSave()

getToolTip

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

setVersionComment

public void setVersionComment(String versionCommentText)

getVersionComment

public String getVersionComment()

hasVersionComment

public boolean hasVersionComment()

hasNotifyWatchers

public boolean hasNotifyWatchers()

openLabelsDialog

public LabelsDialog openLabelsDialog()

openMovePageDialog

public MovePageDialog openMovePageDialog()

isRestrictionsButtonVisible

public boolean isRestrictionsButtonVisible()

openRestrictionsDialog

public PageRestrictionsDialog openRestrictionsDialog()

hasRestrictionsSet

public boolean hasRestrictionsSet()

clickPreview

public EditorPreview clickPreview()

hasDraftStatus

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

hasViewAutosavedChanges

public com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> hasViewAutosavedChanges()

hasPreviewContent

@Deprecated
public com.atlassian.pageobjects.elements.query.TimedCondition hasPreviewContent(String string)
Deprecated. since 5.5 use EditorPreview.containsContent(String), which waits for visibility too and uses pageElements instead of dodgy js.


isEditButtonVisible

public com.atlassian.pageobjects.elements.query.TimedCondition isEditButtonVisible()
The editor's edit button, visible when you are in preview within the editor.


clickEdit

public void clickEdit()

openDraftChangesDialogFromAutosave

public ViewDraftDiffDialog openDraftChangesDialogFromAutosave()

isQuickEdit

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

isDirty

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

getLinkPropertyPanel

public LinkPropertyPanel getLinkPropertyPanel()
Deprecated. since 5.7, please use EditorContent.getEmbededLinks() and click on the individual link to get their link property panel.


getContent

public EditorContent getContent()

isReady

@Deprecated
public com.atlassian.pageobjects.elements.query.TimedCondition isReady()
Deprecated. since 5.6 - Use isEditorCurrentlyActive() to check if tinymce is currently active instead.


isEditPageUrl

@Deprecated
public boolean isEditPageUrl()
Deprecated. since 5.5 use EditContentPage.hasEditPageUrl()

Returns true if the page url matches a valid page edition url.

Returns:
boolean

isEditorCurrentlyActive

public com.atlassian.pageobjects.elements.query.TimedCondition isEditorCurrentlyActive()
Since:
5.6

isTinyMceInit

@Deprecated
public com.atlassian.pageobjects.elements.query.TimedCondition isTinyMceInit()
Deprecated. since 5.6- Use isEditorCurrentlyActive() to check if tinymce is currently active instead.


isEditPageUrlTimed

public com.atlassian.pageobjects.elements.query.TimedCondition isEditPageUrlTimed()
If the page url matches a valid page edition url.

Since:
5.6

isEditBlogPostUrl

public boolean isEditBlogPostUrl()
Returns true if the page url matches a valid blog post edition url.

Returns:
boolean

clickSaveAndWaitForPageChange

public void clickSaveAndWaitForPageChange()
Since:
5.6

clickSaveAndVerifyNoPageReload

public void clickSaveAndVerifyNoPageReload()
Since:
5.6

getUndoLimit

public long getUndoLimit()

setUndoLimit

public void setUndoLimit(long limit)

isTableToolbarOpen

public com.atlassian.pageobjects.elements.query.TimedCondition isTableToolbarOpen()
true if the Table toolbar is visible

Since:
5.6

openInsertMenu

public InsertDropdownMenu openInsertMenu()

openWikiMarkupDialog

public WikiMarkupDialog openWikiMarkupDialog()

openLinkBrowserDialog

public LinkBrowserDialog openLinkBrowserDialog()

openMacroBrowser

public MacroBrowserDialog openMacroBrowser()

openImageDialog

public ImageBrowserDialog openImageDialog()

clickInsertFilesButton

public ImageBrowserDialog clickInsertFilesButton()
Perform click action to Inser files button in editor toolbar


getToolbar

public EditorMainToolbar getToolbar()


Copyright © 2003–2015 Atlassian. All rights reserved.