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

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

public class Editor
extends java.lang.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 clickOverwrite()
           
 EditorPreview clickPreview()
           
 void clickSave()
           
 void clickSaveAndWaitForPageChange()
           
 EditorContent getContent()
           
 LinkPropertyPanel getLinkPropertyPanel()
           
 com.atlassian.pageobjects.elements.query.TimedQuery<java.lang.String> getSaveButtonText()
           
 SourceEditor getSourceEditor()
           
 com.atlassian.pageobjects.elements.PageElement getToolTip()
           
 com.atlassian.pageobjects.elements.query.TimedCondition hasDraftStatus()
           
 com.atlassian.pageobjects.elements.query.TimedCondition hasPreviewContent(java.lang.String string)
          Deprecated. since 5.5 use EditorPreview.containsContent(String), which waits for visibility too and uses pageElements instead of dodgy js.
 boolean hasRestrictionsSet()
           
 com.atlassian.pageobjects.elements.query.TimedQuery<java.lang.Boolean> hasViewAutosavedChanges()
           
 void hoverOverSave()
           
 boolean isCancelVisiableNow()
           
 com.atlassian.pageobjects.elements.query.TimedCondition isDirty()
           
 boolean isEditBlogPostUrl()
          Returns true if the page url matches a valid blog post edition url.
 boolean isEditPageUrl()
          Returns true if the page url matches a valid page edition url.
 com.atlassian.pageobjects.elements.query.TimedCondition isQuickEdit()
           
 com.atlassian.pageobjects.elements.query.TimedCondition isReady()
           
 boolean isRestrictionsButtonVisible()
           
 com.atlassian.pageobjects.elements.query.TimedCondition isSearchButtonVisible()
           
 ViewDraftDiffDialog openDraftChangesDialogFromAutosave()
           
 LabelsDialog openLabelsDialog()
           
 MovePageDialog openMovePageDialog()
           
 PageRestrictionsDialog openRestrictionsDialog()
           
 void openSourceEditor()
           
 ViewPage saveWithKeyboardShortcut()
           
 void setVersionComment(java.lang.String versionCommentText)
           
 PageLayout2Toolbar showPageLayout2Menu()
           
 SearchAndReplaceToolbar showSearchAndReplaceMenu()
           
 
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()

showSearchAndReplaceMenu

public SearchAndReplaceToolbar showSearchAndReplaceMenu()

isSearchButtonVisible

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

clickCancel

public void clickCancel()

openSourceEditor

public void openSourceEditor()

getSourceEditor

public SourceEditor getSourceEditor()

isCancelVisiableNow

public boolean isCancelVisiableNow()

clickSave

public void clickSave()

saveWithKeyboardShortcut

public ViewPage saveWithKeyboardShortcut()

clickOverwrite

public void clickOverwrite()

getSaveButtonText

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

hoverOverSave

public void hoverOverSave()

getToolTip

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

setVersionComment

public void setVersionComment(java.lang.String versionCommentText)

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<java.lang.Boolean> hasViewAutosavedChanges()

hasPreviewContent

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


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

getContent

public EditorContent getContent()

isReady

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

isEditPageUrl

public boolean isEditPageUrl()
Returns true if the page url matches a valid page edition url.

Returns:
boolean

isEditBlogPostUrl

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

Returns:
boolean

clickSaveAndWaitForPageChange

public void clickSaveAndWaitForPageChange()


Copyright © 2003-2014 Atlassian. All Rights Reserved.