|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.selenium.client.Editor
public class Editor
Nested Class Summary | |
---|---|
static class |
Editor.EditorMode
|
Field Summary | |
---|---|
static int |
EDITOR_TIMEOUT_MILLIS
|
static String |
MARKUP_EDITOR_ID
|
Constructor Summary | |
---|---|
Editor(ConfluenceSeleniumClient client,
Confluence confluence)
|
Method Summary | |
---|---|
void |
addComment(Page page)
|
void |
cancel()
|
void |
clickMarkupDefault()
|
void |
clickRteDefault()
|
PageTemplateWizard |
clickSelectTemplate()
|
void |
createBlogPost(Space space)
|
void |
createPage(Space space)
|
void |
discardDraft()
|
void |
edit(ContentEntity contentEntity)
|
void |
edit(ContentEntity contentEntity,
Editor.EditorMode mode)
Opens the edit screen for the given content and switches to the required mode |
long |
getAttachmentSourceContentId()
|
long |
getContentId()
|
Location |
getLocation()
|
long |
getMarkupEditorPositionTop()
|
String |
getPreviewContent()
|
String |
getRichTextContent()
|
TinyMce |
getTinyMce()
|
String |
getTitle()
Gets the value in the editor Title field. |
String |
getWikiMarkupContent()
|
boolean |
hasContentChanged()
Returns true if Confluence considers the editor content to have changed. |
InsertImageDialog |
insertImage()
|
boolean |
isRichTextMode()
|
boolean |
isWikiMarkupMode()
|
void |
logInAndAddComment(User user,
Page page)
|
void |
logInAndCreateBlogPost(User user,
Space space)
|
void |
logInAndCreateChildPage(User user,
Space space,
long parentPageId)
|
void |
logInAndCreatePage(User user,
Space space)
|
void |
logInAndEdit(User user,
ContentEntity contentEntity)
|
void |
logInAndEdit(User user,
ContentEntity contentEntity,
Editor.EditorMode mode)
|
TinyMce |
logInAndEditInRTE(User user,
ContentEntity contentEntity)
Logs the given user in, edits the given content and switches to the RTE. |
void |
logInAndEditMarkup(User user,
ContentEntity contentEntity,
String newContent)
|
void |
merge()
Click the link to merge an existing draft with the current editor content. |
LinkBrowser |
openLinkBrowser()
|
MovePageDialog |
openLocationEditor()
|
MacroBrowser |
openMacroBrowser()
|
MacroBrowser |
openMacroBrowserViaShortcut()
|
PagePermissionsEditor |
openPermissionsEditor()
|
void |
overwriteDraft()
Click the link to overwrite a conflicting draft with the current editor content. |
void |
replyToComment(Comment comment)
Opens the reply page for the given comment |
void |
resumeDraft()
|
PageView |
save()
|
Editor |
saveAndExpectToFail()
Saves the page and expects to return to the editor. |
void |
selectFirstParagraph()
|
void |
selectMarkupText(String text)
Selects the first occurrence of the given string in the Wiki Markup editor. |
void |
setContent(String content)
|
void |
setCursorPosition(int pos)
Sets the cursor position in the markup editor. |
void |
setCursorPositionToEnd()
Puts the cursor at the end of the Wiki Markup editor. |
void |
setTitle(String title)
|
void |
setWikiMarkupContent(String markup)
|
void |
switchToMarkup()
|
void |
switchToMode(Editor.EditorMode mode)
|
void |
switchToPreview()
|
TinyMce |
switchToRichText()
|
void |
triggerDraft()
Triggers a draft by switching to preview mode. |
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()
|
void |
triggerDraftAndCheckUserDrafts(BlogPost blogpost)
|
void |
triggerDraftAndCheckUserDrafts(Page page)
Triggers a draft to be saved and then checks that the draft screen contains a draft with the title of the given page. |
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. |
void |
waitForDraftSavedMessage()
|
void |
waitForDraftSavedMessage(long timeout)
|
void |
waitForEditorPageLoad()
Waits for the page to load with the configured editor page load timeout. |
void |
waitForHeartbeatMessage()
Waits for the heartbeat message container to appear. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String MARKUP_EDITOR_ID
public static final int EDITOR_TIMEOUT_MILLIS
Constructor Detail |
---|
public Editor(ConfluenceSeleniumClient client, Confluence confluence)
Method Detail |
---|
public void waitForEditorPageLoad()
public void logInAndCreatePage(User user, Space space)
public void logInAndCreateChildPage(User user, Space space, long parentPageId)
public void logInAndCreateBlogPost(User user, Space space)
public void logInAndEdit(User user, ContentEntity contentEntity)
public void logInAndEdit(User user, ContentEntity contentEntity, Editor.EditorMode mode)
public void logInAndAddComment(User user, Page page)
public TinyMce logInAndEditInRTE(User user, ContentEntity contentEntity)
public void logInAndEditMarkup(User user, ContentEntity contentEntity, String newContent)
public void edit(ContentEntity contentEntity)
public void edit(ContentEntity contentEntity, Editor.EditorMode mode)
public void addComment(Page page)
public void replyToComment(Comment comment)
comment
- The comment to reply to. It must have an id and page id set.public void createPage(Space space)
public void createBlogPost(Space space)
public String getRichTextContent()
public String getWikiMarkupContent()
public String getTitle()
public String getPreviewContent()
public void setWikiMarkupContent(String markup)
public void setContent(String content)
public void selectFirstParagraph()
public void selectMarkupText(String text)
public void switchToMode(Editor.EditorMode mode)
public void switchToMarkup()
public TinyMce switchToRichText()
public void switchToPreview()
public void triggerDraft()
public void waitForDraftSavedMessage()
public void waitForDraftSavedMessage(long timeout)
public void triggerDraftAndCheckUserDrafts(Page page)
public void triggerDraftAndCheckUserDrafts(BlogPost blogpost)
public void triggerDraftAndCheckUserDrafts()
public void triggerDraftAndCheckNoUserDrafts(Page page)
public void triggerDraftAndEdit(Page page)
public PageView save()
public Editor saveAndExpectToFail()
save()
in that uses the editor
timeout instead of the normal page view timeout and also fails if there is no editor on the page that shows
after save.
public void cancel()
public void resumeDraft()
public void discardDraft()
public PagePermissionsEditor openPermissionsEditor()
public void setTitle(String title)
public void merge()
public void viewConflict()
public void overwriteDraft()
public void setCursorPosition(int pos)
public void setCursorPositionToEnd()
public boolean hasContentChanged()
public TinyMce getTinyMce()
public boolean isWikiMarkupMode()
public boolean isRichTextMode()
public MovePageDialog openLocationEditor()
public MacroBrowser openMacroBrowserViaShortcut()
public MacroBrowser openMacroBrowser()
public LinkBrowser openLinkBrowser()
public InsertImageDialog insertImage()
public long getContentId()
public long getAttachmentSourceContentId()
public Location getLocation()
public long getMarkupEditorPositionTop()
public void clickMarkupDefault()
public void clickRteDefault()
public void waitForHeartbeatMessage()
public PageTemplateWizard clickSelectTemplate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |