|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.team.fvt.tests.web.WebPageElement
com.ibm.team.fvt.tests.web.WebElementWrapper
com.ibm.team.fvt.tests.web.WebCKEditorFramedElement
public class WebCKEditorFramedElement
Class to handle a CKEditor element based on a iframe.
Note that the corresponding iframe is found by default using CKEDITOR_IFRAME_LOCATOR
locator.
Following features are accessible in this page:
addHtml(String)
: Adds the provided html string to the editors contentaddText(String)
: Adds the provided text string to the editors contentaddText(String, boolean)
: Adds the provided text string to the editors content. If true is passed a new line will be added after the content.clearContent()
: clears the editor contentgetHtmlContent()
: Return the content of the current requirement as a html string.getTextContent()
: Return the content of the current requirement as a text string.moveCursorToBeginning()
: Moves the cursor to the beginning of the editormoveCursorToEnd()
: Moves the cursor to the end of the editorsetContent(String)
: Sets the content of the editor with the provided text. Any existing content will be replaced.setContent(String, boolean)
: Sets the content of the editor with the provided text. Any existing content will be replaced. If true is passed the string will be added as a html string
Constructor Summary | |
---|---|
WebCKEditorFramedElement(WebPage page)
|
|
WebCKEditorFramedElement(WebPage page,
org.openqa.selenium.By editorIframeLocator)
|
Method Summary | |
---|---|
void |
addHtml(java.lang.String html)
Adds a html string to the editor's content |
void |
addText(java.lang.String text)
Adds a text string to the editors content |
void |
addText(java.lang.String text,
boolean addNewLine)
Adds a text string to the editors content |
void |
clearContent()
Clears the editor's content |
java.lang.String |
getHtmlContent()
Returns the editor's content as a html string |
java.lang.String |
getTextContent()
Returns the editor's text content |
void |
moveCursorToBeginning()
Moves the cursor to the beginning of the editor |
void |
moveCursorToEnd()
Moves the cursor to the end of the editor |
void |
setContent(java.lang.String content)
Set the text content of the editor. |
void |
setContent(java.lang.String content,
boolean isHtml)
Set the content of the editor. |
Methods inherited from class com.ibm.team.fvt.tests.web.WebElementWrapper |
---|
getText |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WebCKEditorFramedElement(WebPage page)
public WebCKEditorFramedElement(WebPage page, org.openqa.selenium.By editorIframeLocator)
Method Detail |
---|
public void addHtml(java.lang.String html)
html
- A HTML string to add to the editor's contentpublic void addText(java.lang.String text)
text
- A text string to add to the editor's contentpublic void addText(java.lang.String text, boolean addNewLine)
text
- A text string to add to the editor's contentaddNewLine
- If true, a new line will be added after the new textpublic void clearContent()
public java.lang.String getHtmlContent()
public java.lang.String getTextContent()
public void moveCursorToBeginning()
public void moveCursorToEnd()
public void setContent(java.lang.String content)
content
- The new text content for the editorpublic void setContent(java.lang.String content, boolean isHtml)
content
- The new content for the editorisHtml
- Is the content a html string
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |