|
||||||||||
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
Field Summary | |
---|---|
static int |
EDITOR_TIMEOUT_MILLIS
|
static java.lang.String |
MARKUP_EDITOR_ID
|
Constructor Summary | |
---|---|
Editor(ConfluenceSeleniumClient client,
Confluence confluence)
|
Method Summary | |
---|---|
void |
addComment(Page page)
|
void |
cancel()
|
void |
createBlogPost(Space space)
|
void |
createPage(Space space)
|
void |
discardDraft()
|
void |
edit(ContentEntity contentEntity)
|
long |
getAttachmentSourceContentId()
|
long |
getContentId()
|
Location |
getLocation()
|
long |
getMarkupEditorPositionTop()
|
java.lang.String |
getPreviewContent()
|
java.lang.String |
getRichTextContent()
|
TinyMce |
getTinyMce()
|
java.lang.String |
getTitle()
Gets the value in the editor Title field. |
java.lang.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 |
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()
|
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 |
resumeDraft()
|
PageView |
save()
|
void |
selectFirstParagraph()
|
void |
selectMarkupText(java.lang.String text)
Selects the first occurrence of the given string in the Wiki Markup editor. |
void |
setContent(java.lang.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(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()
|
void |
triggerDraftAndCheckUserDrafts(BlogPost blogpost)
|
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. |
void |
waitForEditorPageLoad()
Waits for the page to load with the configured editor page load timeout. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.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 logInAndAddComment(User user, Page page)
public void logInAndEditMarkup(User user, ContentEntity contentEntity, java.lang.String newContent)
public void edit(ContentEntity contentEntity)
public void addComment(Page page)
public void createPage(Space space)
public void createBlogPost(Space space)
public java.lang.String getRichTextContent()
public java.lang.String getWikiMarkupContent()
public java.lang.String getTitle()
public java.lang.String getPreviewContent()
public void setWikiMarkupContent(java.lang.String markup)
public void setContent(java.lang.String content)
public void selectFirstParagraph()
public void selectMarkupText(java.lang.String text)
public void switchToMarkup()
public TinyMce switchToRichText()
public void switchToPreview()
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 void cancel()
public void resumeDraft()
public void discardDraft()
public PagePermissionsEditor openPermissionsEditor()
public void setTitle(java.lang.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 InsertImagePopup openImagePopup()
public MacroBrowser openMacroBrowserViaShortcut()
public MacroBrowser openMacroBrowser()
public LinkBrowser openLinkBrowser()
public InsertImageDialog insertImage()
public long getContentId()
public long getAttachmentSourceContentId()
public Location getLocation()
public long getMarkupEditorPositionTop()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |