|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.pageobjects.component.ConfluenceAbstractPageComponent com.atlassian.confluence.pageobjects.component.editor.EditorContent
public class EditorContent
Field Summary |
---|
Fields inherited from class com.atlassian.confluence.pageobjects.component.ConfluenceAbstractPageComponent |
---|
driver, pageBinder, waiter |
Constructor Summary | |
---|---|
EditorContent()
|
Method Summary | |
---|---|
void |
clear()
|
void |
focusOnTinyMce()
|
String |
getCurrentSelectionText()
Returns the text of the current editor selection. |
String |
getHtml()
Returns the current content of the Editor as HTML. |
RenderedContent |
getRenderedContent()
Returns a RenderedContent object which lets you easily access elements in the
editor iframe without having to manually switch frames. |
void |
leaveFocus()
|
void |
placeCursor(String selector,
int position)
Positions the cursor at the specified position in the first matched element for the provided CSS selector. |
void |
placeCursorAtStart(String selector)
Positions the cursor at the start of the first matched element for the provided CSS selector. |
void |
putCursorAtStartOfElementWithSelectorAndIndex(String selector,
int elementIndex)
Place the cursor at the start of the element matching the given selector and index. |
void |
putCursorAtStartOfFirstElementWithSelector(String selector)
Place the cursor at the start of the first element matching the given selector. |
void |
selectElementWithSelectorAndIndex(String selector,
int elementIndex)
|
void |
selectFirstElementWithSelector(String selector)
Select the first element matching the given selector. |
void |
selectFirstParagraph()
|
void |
setContent(String content)
|
void |
type(String content)
Type content in the editor. |
void |
typeInColumn(int column,
String content)
Type content in the given column index. |
void |
typeInFooter(String content)
Type content in the footer of a page layout. |
void |
typeInHeader(String content)
Type content in the header of a page layout. |
Methods inherited from class com.atlassian.confluence.pageobjects.component.ConfluenceAbstractPageComponent |
---|
getComponent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EditorContent()
Method Detail |
---|
public void focusOnTinyMce()
public void leaveFocus()
public RenderedContent getRenderedContent()
RenderedContent
object which lets you easily access elements in the
editor iframe without having to manually switch frames.
public void setContent(String content)
public void clear()
public void type(String content)
public void typeInColumn(int column, String content)
public void typeInHeader(String content)
public void typeInFooter(String content)
public String getHtml()
public void selectFirstParagraph()
public void selectFirstElementWithSelector(String selector)
public void selectElementWithSelectorAndIndex(String selector, int elementIndex)
public void placeCursorAtStart(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 String getCurrentSelectionText()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |