Class EditorContent
- java.lang.Object
-
- com.atlassian.confluence.pageobjects.component.editor.EditorContent
-
- Direct Known Subclasses:
CommentsSection.EditComment
@Deprecated public class EditorContent extends Object
Deprecated.in 5.8. UseEditorContent
instead from maven modulecom.atlassian.confluence:confluence-webdriver-pageobjects
. See the new README.
-
-
Field Summary
Fields Modifier and Type Field Description protected com.atlassian.pageobjects.PageBinder
binder
Deprecated.protected org.openqa.selenium.JavascriptExecutor
client
Deprecated.protected org.openqa.selenium.WebDriver
driver
Deprecated.protected ConfluenceFrameExecutor
execute
Deprecated.protected com.atlassian.pageobjects.elements.PageElementFinder
page
Deprecated.protected com.atlassian.pageobjects.elements.timeout.Timeouts
timeouts
Deprecated.
-
Constructor Summary
Constructors Constructor Description EditorContent()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description EditorAutocompleteMacro
autocompleteMacro(String content)
Deprecated.EditorContent
clear()
Deprecated.MacroForm
clickEditInlineMacro(String macroName)
Deprecated.Click on the macro, than wait for the property panel to appear and click editvoid
clickInContent(org.openqa.selenium.By by)
Deprecated.EditorContent
clickOnInlinetask(String listItemSelector)
Deprecated.Inline-task-list only have a small portion of the list item that can be clicked in order to toggle the checked state.MacroForm
doubleClickEditInlineMacro(String macroName)
Deprecated.Double click on the macro to trigger edit modecom.atlassian.pageobjects.elements.query.TimedQuery<Integer>
elementSelectionNumberOfMatches(org.openqa.selenium.By selection)
Deprecated.Returns the number of matches for a particular selector query within the editor contentEditorContent
focus()
Deprecated.com.atlassian.pageobjects.elements.query.TimedQuery<String>
getAttributeInSelection(org.openqa.selenium.By selection, String attr)
Deprecated.Returns the value of the attribute of the selectioncom.atlassian.pageobjects.elements.query.TimedQuery<org.openqa.selenium.Dimension>
getContainerSize()
Deprecated.Returns editor sizecom.atlassian.pageobjects.elements.query.TimedQuery<String>
getCurrentSearchMatchText()
Deprecated.String
getEditorVersion()
Deprecated.Get TinyMCE versionList<EditorEmbeddedImage>
getEmbeddedImages()
Deprecated.List<EditorEmbeddedLink>
getEmbededLinks()
Deprecated.String
getHtml()
Deprecated.Since 5.4 use getTimedHtml()com.atlassian.pageobjects.elements.query.TimedQuery<Integer>
getImageHeight(Attachment image)
Deprecated.since 5.7 use `getEmbeddedImages` to get EditorEmbeddedImage then use EditorEmbeddedImage.getHeight()String
getInnerHTMLOfCurrentCursorPosition()
Deprecated.Returns the innerHTML value of the node that the cursor is currently positioned in.RenderedContent
getRenderedContent()
Deprecated.Returns aRenderedContent
object which lets you easily access elements in the editor iframe without having to manually switch frames.com.atlassian.pageobjects.elements.query.TimedQuery<String>
getSelectorParentText(String selector)
Deprecated.Returns the parent PageElement of a selectorcom.atlassian.pageobjects.elements.query.TimedQuery<String>
getTextInSelection(org.openqa.selenium.By selection)
Deprecated.Returns text contained in the provided selection within the editor contentcom.atlassian.pageobjects.elements.query.TimedQuery<String>
getTimedHtml()
Deprecated.com.atlassian.pageobjects.elements.query.TimedQuery<String>
getTimedNormalizedHtml(boolean normalizeSpaces)
Deprecated.com.atlassian.pageobjects.elements.query.TimedQuery<Boolean>
hasInlineMacro(String macroName, List<String> macroParameters)
Deprecated.Check if inline macro is existed on editor panel or notcom.atlassian.pageobjects.elements.query.TimedCondition
hasLayout(PageLayout2Toolbar.PageLayoutSectionType sectionType)
Deprecated.com.atlassian.pageobjects.elements.query.TimedQuery<Boolean>
hasMacro(String macroName, String... macroParameters)
Deprecated.com.atlassian.pageobjects.elements.query.TimedQuery<Boolean>
hasMacro(String macroName, List<String> macroParameters)
Deprecated.Check if non-inline macro exists in editor panel or notcom.atlassian.pageobjects.elements.query.TimedQuery<Boolean>
hasMacroPlaceholder(String macroName)
Deprecated.com.atlassian.pageobjects.elements.query.TimedQuery<Boolean>
hasPageLinkWithExplicitSpaceKey(String spaceKey, String pageTitle)
Deprecated.com.atlassian.pageobjects.elements.query.TimedCondition
htmlContains(String markup)
Deprecated.com.atlassian.pageobjects.elements.query.TimedQuery<Boolean>
isContentVisible()
Deprecated.com.atlassian.pageobjects.elements.query.TimedQuery<Boolean>
isElementPresentInEditorContentTimed(org.openqa.selenium.By selection)
Deprecated.Returns if certain selection is matched on the editor contentcom.atlassian.pageobjects.elements.query.TimedCondition
isImagePresent(Attachment attachment)
Deprecated.com.atlassian.pageobjects.elements.query.TimedCondition
isImagePresentBySrc(Attachment attachment)
Deprecated.com.atlassian.pageobjects.elements.query.TimedCondition
isVisble(org.openqa.selenium.By by)
Deprecated.since 5.5.1 use isPresentcom.atlassian.pageobjects.elements.query.TimedCondition
isVisible(org.openqa.selenium.By by)
Deprecated.Check if the editor content has a certain elementList<MacroPlaceholder>
macroPlaceholderFor(String macroName)
Deprecated.MentionsMenu
mentionsAutocomplete(String content)
Deprecated.com.atlassian.pageobjects.elements.query.TimedCondition
normalizedHtmlContains(String normalizedHtml, boolean normalizeSpaces)
Deprecated.String
normalizeHtml(String html, boolean normalizeSpaces)
Deprecated.void
pasteContent(String html)
Deprecated.Pastes the content as though it came from the clipboard.void
placeCursor(String selector, int position)
Deprecated.Positions the cursor at the specified position in the first matched element for the provided CSS selector.void
placeCursorAtEnd(String selector)
Deprecated.Positions the cursor at the end of the first matched element for the provided CSS selector.void
placeCursorAtStart(String selector)
Deprecated.Positions the cursor at the start of the first matched element for the provided CSS selector.void
putCursorAtStartOfElementWithSelectorAndIndex(String selector, int elementIndex)
Deprecated.Place the cursor at the start of the element matching the given selector and index.void
select(String startArgs, String endArgs)
Deprecated.void
selectElementWithSelectorAndIndex(String selector, int elementIndex)
Deprecated.void
selectFirstElementWithSelector(String selector)
Deprecated.Select the first element matching the given selector.void
selectFirstParagraph()
Deprecated.void
sendKeys(String keys)
Deprecated.EditorContent
setContent(String content)
Deprecated.void
setContentInColumn(int column, String content)
Deprecated.Set content in the given column index.void
setContentViaJs(String content)
Deprecated.This sets the content of the editor using the TinyMCE api.EditorContent
type(String content)
Deprecated.Type content in the editor.protected void
typeIn(com.atlassian.pageobjects.elements.PageElement element, String content)
Deprecated.Currently uses sendKeys to the given element to type.void
typeInColumn(int column, String content)
Deprecated.Type content in the given column index.EditorContent
typeWithoutLosingFocus(CharSequence... content)
Deprecated.Type content in the editor and do not lose focusvoid
undo()
Deprecated.Execute Undo command in editorvoid
waitForInlineMacro(String macroName)
Deprecated.Wait for a macro without a body to be rendered.void
waitForInlineMacroWithDefaultParameter(String macroName, String defaultParameter)
Deprecated.Wait for a macro with a default parameter to be rendered.void
waitForInlineMacroWithParameters(String macroName, String parameters)
Deprecated.Wait for a macro with parameters to be rendered.void
waitForMacroBody(String macroName, String body)
Deprecated.Wait for a macro with a body to be renderedvoid
waitForMacroBodyInColumn(int column, String macroName)
Deprecated.Wait for a macro with a body to be rendered inside a columnvoid
waitForMacroWithParameters(String macroName, String... parameters)
Deprecated.void
waitForMacroWithParameters(String macroName, List<String> parameters)
Deprecated.Wait for a non-inline macro with parameters to be rendered.void
waitForTextContent(String content)
Deprecated.Waits until the given text is present in the editor content.void
waitUntilMetaDataIsPopulated()
Deprecated.Wait's until the meta data list for the macro browser is populated and then switches the frame back to tinymce
-
-
-
Field Detail
-
execute
@Inject protected ConfluenceFrameExecutor execute
Deprecated.
-
binder
@Inject protected com.atlassian.pageobjects.PageBinder binder
Deprecated.
-
driver
@Inject protected org.openqa.selenium.WebDriver driver
Deprecated.
-
client
@Inject protected org.openqa.selenium.JavascriptExecutor client
Deprecated.
-
page
@Inject protected com.atlassian.pageobjects.elements.PageElementFinder page
Deprecated.
-
timeouts
@Inject protected com.atlassian.pageobjects.elements.timeout.Timeouts timeouts
Deprecated.
-
-
Method Detail
-
getRenderedContent
public RenderedContent getRenderedContent()
Deprecated.Returns aRenderedContent
object which lets you easily access elements in the editor iframe without having to manually switch frames.
-
isContentVisible
public com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> isContentVisible()
Deprecated.
-
getContainerSize
public com.atlassian.pageobjects.elements.query.TimedQuery<org.openqa.selenium.Dimension> getContainerSize()
Deprecated.Returns editor size- Since:
- 5.6
-
setContent
public EditorContent setContent(String content)
Deprecated.
-
setContentViaJs
public void setContentViaJs(String content)
Deprecated.This sets the content of the editor using the TinyMCE api. It does not fire the correct key events and does not wait for the content to be present either. Use this method with care.- Parameters:
content
- html content to be set in the editor
-
clear
public EditorContent clear()
Deprecated.
-
typeWithoutLosingFocus
public EditorContent typeWithoutLosingFocus(CharSequence... content)
Deprecated.Type content in the editor and do not lose focus
-
clickOnInlinetask
public EditorContent clickOnInlinetask(String listItemSelector)
Deprecated.Inline-task-list only have a small portion of the list item that can be clicked in order to toggle the checked state.
-
focus
public EditorContent focus()
Deprecated.
-
type
public EditorContent type(String content)
Deprecated.Type content in the editor. It assumes that no page layout has been applied.
-
typeInColumn
public void typeInColumn(int column, String content)
Deprecated.Type content in the given column index. It assumes that a column page layout has been applied. Note the column index is 1-based.
-
setContentInColumn
public void setContentInColumn(int column, String content)
Deprecated.Set content in the given column index. It assumes that a column page layout has been applied. Note the column index is 1-based.- Parameters:
column
- column index (1-based)content
- string to be set as content.
-
clickEditInlineMacro
public MacroForm clickEditInlineMacro(String macroName)
Deprecated.Click on the macro, than wait for the property panel to appear and click edit- Parameters:
macroName
- The name of the macro to wait for
-
doubleClickEditInlineMacro
public MacroForm doubleClickEditInlineMacro(String macroName)
Deprecated.Double click on the macro to trigger edit mode- Parameters:
macroName
- The name of the macro to wait for
-
waitForInlineMacro
public void waitForInlineMacro(String macroName)
Deprecated.Wait for a macro without a body to be rendered.- Parameters:
macroName
- The name of the macro to wait for
-
waitForInlineMacroWithDefaultParameter
public void waitForInlineMacroWithDefaultParameter(String macroName, String defaultParameter)
Deprecated.Wait for a macro with a default parameter to be rendered.
-
waitForInlineMacroWithParameters
public void waitForInlineMacroWithParameters(String macroName, String parameters)
Deprecated.Wait for a macro with parameters to be rendered.
-
waitForMacroWithParameters
public void waitForMacroWithParameters(String macroName, List<String> parameters)
Deprecated.Wait for a non-inline macro with parameters to be rendered.
-
waitForMacroWithParameters
public void waitForMacroWithParameters(String macroName, String... parameters)
Deprecated.
-
waitForMacroBodyInColumn
public void waitForMacroBodyInColumn(int column, String macroName)
Deprecated.Wait for a macro with a body to be rendered inside a column- Parameters:
column
- The index of the column (1-based).macroName
- The name of the macro to wait for
-
waitForMacroBody
public void waitForMacroBody(String macroName, String body)
Deprecated.Wait for a macro with a body to be rendered
-
waitForTextContent
public void waitForTextContent(String content)
Deprecated.Waits until the given text is present in the editor content.
-
sendKeys
public void sendKeys(String keys)
Deprecated.
-
typeIn
protected void typeIn(com.atlassian.pageobjects.elements.PageElement element, String content)
Deprecated.Currently uses sendKeys to the given element to type. This needs to be rewritten so it works for all the browsers.
-
getHtml
@Deprecated public String getHtml()
Deprecated.Since 5.4 use getTimedHtml()Returns the current content of the Editor as HTML.
-
htmlContains
public com.atlassian.pageobjects.elements.query.TimedCondition htmlContains(String markup)
Deprecated.- Since:
- 5.6
-
getTimedHtml
public com.atlassian.pageobjects.elements.query.TimedQuery<String> getTimedHtml()
Deprecated.
-
getTimedNormalizedHtml
public com.atlassian.pageobjects.elements.query.TimedQuery<String> getTimedNormalizedHtml(boolean normalizeSpaces)
Deprecated.- Since:
- 5.6
-
normalizedHtmlContains
public com.atlassian.pageobjects.elements.query.TimedCondition normalizedHtmlContains(String normalizedHtml, boolean normalizeSpaces)
Deprecated.- Since:
- 5.6
-
normalizeHtml
public String normalizeHtml(String html, boolean normalizeSpaces)
Deprecated.- Since:
- 5.6
-
selectFirstParagraph
public void selectFirstParagraph()
Deprecated.
-
selectFirstElementWithSelector
public void selectFirstElementWithSelector(String selector)
Deprecated.Select the first element matching the given selector.
-
selectElementWithSelectorAndIndex
public void selectElementWithSelectorAndIndex(String selector, int elementIndex)
Deprecated.
-
placeCursorAtStart
public void placeCursorAtStart(String selector)
Deprecated.Positions the cursor at the start of the first matched element for the provided CSS selector.
-
placeCursorAtEnd
public void placeCursorAtEnd(String selector)
Deprecated.Positions the cursor at the end of the first matched element for the provided CSS selector.
-
placeCursor
public void placeCursor(String selector, int position)
Deprecated.Positions the cursor at the specified position in the first matched element for the provided CSS selector. Doesn't work for IE very well.
-
putCursorAtStartOfElementWithSelectorAndIndex
public void putCursorAtStartOfElementWithSelectorAndIndex(String selector, int elementIndex)
Deprecated.Place the cursor at the start of the element matching the given selector and index. Seems to work in Firefox & IE, although the moxiecode docs indicate that the 'true' second parameter doesn't do anything in IE. If this method turns out to be consistent we could refactor#putCursorAtStartOfFirstElementWithSelector(String)
into it.- Parameters:
selector
- see tiny_mce_src.DOMUtils.selectelementIndex
- index of matched element to select, 0-indexed
-
getInnerHTMLOfCurrentCursorPosition
public String getInnerHTMLOfCurrentCursorPosition()
Deprecated.Returns the innerHTML value of the node that the cursor is currently positioned in.
-
getSelectorParentText
public com.atlassian.pageobjects.elements.query.TimedQuery<String> getSelectorParentText(String selector)
Deprecated.Returns the parent PageElement of a selector
-
isElementPresentInEditorContentTimed
public com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> isElementPresentInEditorContentTimed(org.openqa.selenium.By selection)
Deprecated.Returns if certain selection is matched on the editor content
-
elementSelectionNumberOfMatches
public com.atlassian.pageobjects.elements.query.TimedQuery<Integer> elementSelectionNumberOfMatches(org.openqa.selenium.By selection)
Deprecated.Returns the number of matches for a particular selector query within the editor content
-
getTextInSelection
public com.atlassian.pageobjects.elements.query.TimedQuery<String> getTextInSelection(org.openqa.selenium.By selection)
Deprecated.Returns text contained in the provided selection within the editor content
-
getAttributeInSelection
public com.atlassian.pageobjects.elements.query.TimedQuery<String> getAttributeInSelection(org.openqa.selenium.By selection, String attr)
Deprecated.Returns the value of the attribute of the selection
-
hasMacroPlaceholder
public com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> hasMacroPlaceholder(String macroName)
Deprecated.
-
getEmbeddedImages
public List<EditorEmbeddedImage> getEmbeddedImages()
Deprecated.
-
macroPlaceholderFor
public List<MacroPlaceholder> macroPlaceholderFor(String macroName)
Deprecated.
-
getCurrentSearchMatchText
public com.atlassian.pageobjects.elements.query.TimedQuery<String> getCurrentSearchMatchText()
Deprecated.
-
clickInContent
public void clickInContent(org.openqa.selenium.By by)
Deprecated.
-
isVisble
@Deprecated public com.atlassian.pageobjects.elements.query.TimedCondition isVisble(org.openqa.selenium.By by)
Deprecated.since 5.5.1 use isPresent
-
isVisible
public com.atlassian.pageobjects.elements.query.TimedCondition isVisible(org.openqa.selenium.By by)
Deprecated.Check if the editor content has a certain element- Since:
- 5.6
-
isImagePresent
public com.atlassian.pageobjects.elements.query.TimedCondition isImagePresent(Attachment attachment)
Deprecated.
-
isImagePresentBySrc
public com.atlassian.pageobjects.elements.query.TimedCondition isImagePresentBySrc(Attachment attachment)
Deprecated.
-
getImageHeight
public com.atlassian.pageobjects.elements.query.TimedQuery<Integer> getImageHeight(Attachment image)
Deprecated.since 5.7 use `getEmbeddedImages` to get EditorEmbeddedImage then use EditorEmbeddedImage.getHeight()
-
hasLayout
public com.atlassian.pageobjects.elements.query.TimedCondition hasLayout(PageLayout2Toolbar.PageLayoutSectionType sectionType)
Deprecated.
-
autocompleteMacro
public EditorAutocompleteMacro autocompleteMacro(String content)
Deprecated.
-
waitUntilMetaDataIsPopulated
public void waitUntilMetaDataIsPopulated()
Deprecated.Wait's until the meta data list for the macro browser is populated and then switches the frame back to tinymce- Since:
- 5.6
-
mentionsAutocomplete
public MentionsMenu mentionsAutocomplete(String content)
Deprecated.
-
hasInlineMacro
public com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> hasInlineMacro(String macroName, List<String> macroParameters)
Deprecated.Check if inline macro is existed on editor panel or not
-
hasMacro
public com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> hasMacro(String macroName, List<String> macroParameters)
Deprecated.Check if non-inline macro exists in editor panel or not
-
hasMacro
public com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> hasMacro(String macroName, String... macroParameters)
Deprecated.
-
hasPageLinkWithExplicitSpaceKey
public com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> hasPageLinkWithExplicitSpaceKey(String spaceKey, String pageTitle)
Deprecated.
-
undo
public void undo()
Deprecated.Execute Undo command in editor
-
pasteContent
public void pasteContent(String html)
Deprecated.Pastes the content as though it came from the clipboard.
-
getEmbededLinks
public List<EditorEmbeddedLink> getEmbededLinks()
Deprecated.- Returns:
- a list of links in the current editor. There is no guarenteed ordering, and may not appear in page order.
- Since:
- 5.7
-
getEditorVersion
public String getEditorVersion()
Deprecated.Get TinyMCE version- Returns:
- 3 or 4
-
-