EditorContent
instead from
maven module com.atlassian.confluence:confluence-webdriver-pageobjects
. See the new README.@Deprecated public class EditorContent extends Object
Modifier and Type | Field and 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 and Description |
---|
EditorContent()
Deprecated.
|
Modifier and Type | Method and 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 edit
|
void |
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 mode
|
MacroForm |
doubleClickEditWysiwygMacro(String macroName)
Deprecated.
|
void |
doubleClickInContent(org.openqa.selenium.By by)
Deprecated.
|
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
|
EditorContent |
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 selection
|
String |
getClassNameOfCurrentCursor()
Deprecated.
|
com.atlassian.pageobjects.elements.query.TimedQuery<org.openqa.selenium.Dimension> |
getContainerSize()
Deprecated.
Returns editor size
|
com.atlassian.pageobjects.elements.query.TimedQuery<String> |
getCurrentSearchMatchText()
Deprecated.
|
String |
getCurrentSelectionText()
Deprecated.
Returns the text of the current editor selection.
|
com.atlassian.pageobjects.elements.query.TimedQuery<String> |
getCurrentSelectionTextTimed()
Deprecated.
Returns a timed query for getting the current editor selection.
|
List<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()
|
com.atlassian.pageobjects.elements.query.TimedQuery<Integer> |
getImageWidth(Attachment image)
Deprecated.
since 5.7 use `getEmbeddedImages` to get EditorEmbeddedImage then use EditorEmbeddedImage.getWidth()
|
String |
getInnerHTMLOfCurrentCursorPosition()
Deprecated.
Returns the innerHTML value of the node that the cursor is currently positioned in.
|
RenderedContent |
getRenderedContent()
Deprecated.
Returns a
RenderedContent 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 selector
|
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
|
com.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 not
|
com.atlassian.pageobjects.elements.query.TimedCondition |
hasLayout(PageLayout2Toolbar.PageLayoutSectionType sectionType)
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 not
|
com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> |
hasMacro(String macroName,
String... macroParameters)
Deprecated.
|
com.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 content
|
com.atlassian.pageobjects.elements.query.TimedCondition |
isImageEmbedded(String imageName)
Deprecated.
|
com.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 isPresent
|
com.atlassian.pageobjects.elements.query.TimedCondition |
isVisible(org.openqa.selenium.By by)
Deprecated.
Check if the editor content has a certain element
|
List<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 |
putCursorAtEndOfFirstElementWithSelector(String selector)
Deprecated.
Place the cursor at the end of the first element matching the given selector.
|
void |
putCursorAtStartOfElementWithSelectorAndIndex(String selector,
int elementIndex)
Deprecated.
Place the cursor at the start of the element matching the given selector and index.
|
void |
putCursorAtStartOfFirstElementWithSelector(String selector)
Deprecated.
Place the cursor at the start of the first element matching the given selector.
|
void |
redo()
Deprecated.
Execute Redo command in editor
|
void |
replaceCurrentSelectionChildContent(String text)
Deprecated.
|
void |
replaceCurrentSelectionChildContentWithHtml(String html)
Deprecated.
|
void |
replaceCurrentSelectionText(String text)
Deprecated.
Replaces the text of the current selection with the given text.
|
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 focus
|
void |
undo()
Deprecated.
Execute Undo command in editor
|
void |
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 |
waitForMacro(String macroName)
Deprecated.
Wait for a non-inline macro to be rendered.
|
void |
waitForMacroBody(String macroName,
String body)
Deprecated.
Wait for a macro with a body to be rendered
|
void |
waitForMacroBodyInColumn(int column,
String macroName)
Deprecated.
Wait for a macro with a body to be rendered inside a column
|
void |
waitForMacroWithParameters(String macroName,
List<String> parameters)
Deprecated.
Wait for a non-inline macro with parameters to be rendered.
|
void |
waitForMacroWithParameters(String macroName,
String... parameters)
Deprecated.
|
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
|
@Inject protected ConfluenceFrameExecutor execute
@Inject protected com.atlassian.pageobjects.PageBinder binder
@Inject protected org.openqa.selenium.WebDriver driver
@Inject protected org.openqa.selenium.JavascriptExecutor client
@Inject protected com.atlassian.pageobjects.elements.PageElementFinder page
@Inject protected com.atlassian.pageobjects.elements.timeout.Timeouts timeouts
public RenderedContent getRenderedContent()
RenderedContent
object which lets you easily access elements in the editor iframe without
having to manually switch frames.public com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> isContentVisible()
public com.atlassian.pageobjects.elements.query.TimedQuery<org.openqa.selenium.Dimension> getContainerSize()
public EditorContent setContent(String content)
public void setContentViaJs(String content)
content
- html content to be set in the editorpublic EditorContent clear()
public EditorContent typeWithoutLosingFocus(CharSequence... content)
public EditorContent clickOnInlinetask(String listItemSelector)
public EditorContent focus()
public EditorContent type(String content)
public void typeInColumn(int column, String content)
public void setContentInColumn(int column, String content)
column
- column index (1-based)content
- string to be set as content.public MacroForm clickEditInlineMacro(String macroName)
macroName
- The name of the macro to wait forpublic MacroForm doubleClickEditInlineMacro(String macroName)
macroName
- The name of the macro to wait forpublic MacroForm doubleClickEditWysiwygMacro(String macroName)
public void waitForInlineMacro(String macroName)
macroName
- The name of the macro to wait forpublic void waitForInlineMacroWithDefaultParameter(String macroName, String defaultParameter)
public void waitForInlineMacroWithParameters(String macroName, String parameters)
public void waitForMacro(String macroName)
macroName
- The name of the macro to wait forpublic void waitForMacroWithParameters(String macroName, List<String> parameters)
public void waitForMacroWithParameters(String macroName, String... parameters)
public void waitForMacroBodyInColumn(int column, String macroName)
column
- The index of the column (1-based).macroName
- The name of the macro to wait forpublic void waitForMacroBody(String macroName, String body)
public void waitForTextContent(String content)
public void sendKeys(String keys)
protected void typeIn(com.atlassian.pageobjects.elements.PageElement element, String content)
@Deprecated public String getHtml()
public com.atlassian.pageobjects.elements.query.TimedCondition htmlContains(String markup)
public com.atlassian.pageobjects.elements.query.TimedQuery<String> getTimedHtml()
public com.atlassian.pageobjects.elements.query.TimedQuery<String> getTimedNormalizedHtml(boolean normalizeSpaces)
public com.atlassian.pageobjects.elements.query.TimedCondition normalizedHtmlContains(String normalizedHtml, boolean normalizeSpaces)
public String normalizeHtml(String html, boolean normalizeSpaces)
public void selectFirstParagraph()
public void selectFirstElementWithSelector(String selector)
public void selectElementWithSelectorAndIndex(String selector, int elementIndex)
public void placeCursorAtStart(String selector)
public void placeCursorAtEnd(String selector)
public void placeCursor(String selector, int position)
public void putCursorAtStartOfElementWithSelectorAndIndex(String selector, int elementIndex)
putCursorAtStartOfFirstElementWithSelector(String)
into it.selector
- see tiny_mce_src.DOMUtils.selectelementIndex
- index of matched element to select, 0-indexedpublic void putCursorAtStartOfFirstElementWithSelector(String selector)
selector
- see tiny_mce_src.DOMUtils.selectpublic void putCursorAtEndOfFirstElementWithSelector(String selector)
selector
- see tiny_mce_src.DOMUtils.selectpublic String getInnerHTMLOfCurrentCursorPosition()
public String getClassNameOfCurrentCursor()
public String getCurrentSelectionText()
public com.atlassian.pageobjects.elements.query.TimedQuery<String> getSelectorParentText(String selector)
public com.atlassian.pageobjects.elements.query.TimedQuery<String> getCurrentSelectionTextTimed()
public com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> isElementPresentInEditorContentTimed(org.openqa.selenium.By selection)
public com.atlassian.pageobjects.elements.query.TimedQuery<Integer> elementSelectionNumberOfMatches(org.openqa.selenium.By selection)
public com.atlassian.pageobjects.elements.query.TimedQuery<String> getTextInSelection(org.openqa.selenium.By selection)
public com.atlassian.pageobjects.elements.query.TimedQuery<String> getAttributeInSelection(org.openqa.selenium.By selection, String attr)
public void replaceCurrentSelectionText(String text)
text
- the text to replace the current selection withpublic void replaceCurrentSelectionChildContent(String text)
public void replaceCurrentSelectionChildContentWithHtml(String html)
public com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> hasMacroPlaceholder(String macroName)
public List<EditorEmbeddedImage> getEmbeddedImages()
public com.atlassian.pageobjects.elements.query.TimedCondition isImageEmbedded(String imageName)
public List<MacroPlaceholder> macroPlaceholderFor(String macroName)
public com.atlassian.pageobjects.elements.query.TimedQuery<String> getCurrentSearchMatchText()
public void clickInContent(org.openqa.selenium.By by)
public void doubleClickInContent(org.openqa.selenium.By by)
@Deprecated public com.atlassian.pageobjects.elements.query.TimedCondition isVisble(org.openqa.selenium.By by)
public com.atlassian.pageobjects.elements.query.TimedCondition isVisible(org.openqa.selenium.By by)
public com.atlassian.pageobjects.elements.query.TimedCondition isImagePresent(Attachment attachment)
public com.atlassian.pageobjects.elements.query.TimedCondition isImagePresentBySrc(Attachment attachment)
public com.atlassian.pageobjects.elements.query.TimedQuery<Integer> getImageHeight(Attachment image)
public com.atlassian.pageobjects.elements.query.TimedQuery<Integer> getImageWidth(Attachment image)
public com.atlassian.pageobjects.elements.query.TimedCondition hasLayout(PageLayout2Toolbar.PageLayoutSectionType sectionType)
public EditorAutocompleteMacro autocompleteMacro(String content)
public void waitUntilMetaDataIsPopulated()
public MentionsMenu mentionsAutocomplete(String content)
public com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> hasInlineMacro(String macroName, List<String> macroParameters)
public com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> hasMacro(String macroName, List<String> macroParameters)
public com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> hasMacro(String macroName, String... macroParameters)
public com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> hasPageLinkWithExplicitSpaceKey(String spaceKey, String pageTitle)
public void undo()
public void redo()
public void pasteContent(String html)
public List<EditorEmbeddedLink> getEmbededLinks()
Copyright © 2003–2017 Atlassian. All rights reserved.