com.atlassian.confluence.pageobjects.page.content
Class AbstractEditorPage<T extends AbstractViewPage,U extends AbstractEditorPage>
java.lang.Object
com.atlassian.confluence.pageobjects.page.ConfluenceAbstractPage
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
|
Constructor Summary |
AbstractEditorPage(java.lang.Class<T> classWhenSaving,
java.lang.Class<U> classWhenFailing,
java.lang.String pageMetaIdentifier)
|
| Methods inherited from class com.atlassian.confluence.pageobjects.page.ConfluenceAbstractPage |
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 |
AbstractEditorPage
public AbstractEditorPage(java.lang.Class<T> classWhenSaving,
java.lang.Class<U> classWhenFailing,
java.lang.String pageMetaIdentifier)
doWaitUntilTinyMceIsInit
public void doWaitUntilTinyMceIsInit()
setTitle
public AbstractEditorPage<T,U> setTitle(java.lang.String title)
getTitle
public java.lang.String getTitle()
getContent
public EditorContent getContent()
getPageLayoutMenu
public PageLayoutMenu getPageLayoutMenu()
showPageLayout2Menu
public PageLayout2Toolbar showPageLayout2Menu()
getLocation
public Location getLocation()
cancel
public T cancel()
cancelDoNotBind
public void cancelDoNotBind()
- Cancel buttons can really go to different places, particularly on create.
Use this if you don't need a pageobject returned.
save
public T save()
saveAndExpectToFail
public U saveAndExpectToFail()
isTitleEditable
public boolean isTitleEditable()
setVersionComment
public void setVersionComment(java.lang.String versionCommentText)
saveWithEnterInVersionComment
public T saveWithEnterInVersionComment()
saveWithKeyboardShortcut
public ViewPage saveWithKeyboardShortcut()
getImagePropertyPanel
public ImagePropertyPanel getImagePropertyPanel()
getImageBrowserDialog
public ImageBrowserDialog getImageBrowserDialog()
getErrorMessages
public java.util.List<java.lang.String> getErrorMessages()
openMacroBrowser
public MacroBrowserDialog openMacroBrowser()
openWikiMarkupDialog
public WikiMarkupDialog openWikiMarkupDialog()
openInsertMenu
public InsertMenu openInsertMenu()
openLabelsDialog
public LabelsDialog openLabelsDialog()
getBreadcrumbs
public Breadcrumbs getBreadcrumbs()
openRestrictionsDialog
public PageRestrictionsDialog openRestrictionsDialog()
preview
public void preview()
hasDraftStatus
public com.atlassian.pageobjects.elements.query.TimedCondition hasDraftStatus()
- Returns a timed condition for which true means the little "Draft autosaved message" would
be visible if the window were big enough to display it. Webdriver test windows typically have
the message hidden by the size-responsive editor.
hasPreviewContent
public com.atlassian.pageobjects.elements.query.TimedCondition hasPreviewContent(java.lang.String string)
- After clicking
preview(), 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?
Copyright © 2003-2013 Atlassian. All Rights Reserved.