com.atlassian.confluence.selenium.client
Class Editor

java.lang.Object
  extended by com.atlassian.confluence.selenium.client.Editor

public class Editor
extends java.lang.Object

Editor on bamboo is very slow, so delays in this class are intentionally higher than the defaults.


Constructor Summary
Editor(ConfluenceSeleniumClient client, Confluence confluence)
           
 
Method Summary
 void cancel()
           
 void createBlogPost(Space space)
           
 void createPage(Space space)
           
 void discardDraft()
           
 void edit(ContentEntity contentEntity)
           
 PagePermissionsEditor getPermissionsEditor()
           
 java.lang.String getRichTextContent()
           
 TinyMce getTinyMce()
           
 java.lang.String getWikiMarkupContent()
           
 boolean hasContentChanged()
          Returns true if Confluence considers the editor content to have changed.
 boolean isRichTextMode()
           
 boolean isWikiMarkupMode()
           
 void logInAndCreateBlogPost(User user, Space space)
           
 void logInAndCreatePage(User user, Space space)
           
 void logInAndEdit(User user, ContentEntity contentEntity)
           
 void logInAndEditMarkup(User user, ContentEntity contentEntity, java.lang.String newContent)
           
 void merge()
          Click the link to merge an existing draft with the current editor content.
 InsertImagePopup openImagePopup()
           
 InsertLinkPopup openLinkPopup()
           
 void openLocationEditor()
           
 void overwriteDraft()
          Click the link to overwrite a conflicting draft with the current editor content.
 void resumeDraft()
           
 void save()
           
 void setTitle(java.lang.String title)
           
 void setWikiMarkupContent(java.lang.String markup)
           
 void switchToMarkup()
           
 void switchToPreview()
           
 TinyMce switchToRichText()
           
 void triggerDraftAndCheckNoUserDrafts(Page page)
          Leaves a unmodified page and checks that the draft screen does NOT contain a draft with the title of the given page.
 void triggerDraftAndCheckUserDrafts(Page page)
          Triggers a draft to be saved.
 void triggerDraftAndEdit(Page page)
          Triggers a draft to be saved.
 void viewConflict()
          Click the link to resolve a conflict between an existing draft and the current editor content.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Editor

public Editor(ConfluenceSeleniumClient client,
              Confluence confluence)
Method Detail

logInAndCreatePage

public void logInAndCreatePage(User user,
                               Space space)

logInAndCreateBlogPost

public void logInAndCreateBlogPost(User user,
                                   Space space)

logInAndEdit

public void logInAndEdit(User user,
                         ContentEntity contentEntity)

logInAndEditMarkup

public void logInAndEditMarkup(User user,
                               ContentEntity contentEntity,
                               java.lang.String newContent)

edit

public void edit(ContentEntity contentEntity)

createPage

public void createPage(Space space)

createBlogPost

public void createBlogPost(Space space)

getRichTextContent

public java.lang.String getRichTextContent()

getWikiMarkupContent

public java.lang.String getWikiMarkupContent()

setWikiMarkupContent

public void setWikiMarkupContent(java.lang.String markup)

switchToMarkup

public void switchToMarkup()

switchToRichText

public TinyMce switchToRichText()

switchToPreview

public void switchToPreview()

triggerDraftAndCheckUserDrafts

public void triggerDraftAndCheckUserDrafts(Page page)
Triggers a draft to be saved. It checks that the draft screen contains a draft with the title of the given page.


triggerDraftAndCheckNoUserDrafts

public void triggerDraftAndCheckNoUserDrafts(Page page)
Leaves a unmodified page and checks that the draft screen does NOT contain a draft with the title of the given page.


triggerDraftAndEdit

public void triggerDraftAndEdit(Page page)
Triggers a draft to be saved. It checks that the draft screen contains a draft with the title of the given page and then returns to the edit page screen.


save

public void save()

cancel

public void cancel()

resumeDraft

public void resumeDraft()

discardDraft

public void discardDraft()

openLocationEditor

public void openLocationEditor()

getPermissionsEditor

public PagePermissionsEditor getPermissionsEditor()

setTitle

public void setTitle(java.lang.String title)

merge

public void merge()
Click the link to merge an existing draft with the current editor content.


viewConflict

public void viewConflict()
Click the link to resolve a conflict between an existing draft and the current editor content.


overwriteDraft

public void overwriteDraft()
Click the link to overwrite a conflicting draft with the current editor content.


hasContentChanged

public boolean hasContentChanged()
Returns true if Confluence considers the editor content to have changed. Checks RTE and Wiki markup.


getTinyMce

public TinyMce getTinyMce()

isWikiMarkupMode

public boolean isWikiMarkupMode()

isRichTextMode

public boolean isRichTextMode()

openLinkPopup

public InsertLinkPopup openLinkPopup()

openImagePopup

public InsertImagePopup openImagePopup()


Copyright © 2003-2008 Atlassian Pty Ltd. All Rights Reserved.