com.ibm.team.fvt.tests.web
Class WebCKEditorFramedElement

java.lang.Object
  extended by com.ibm.team.fvt.tests.web.WebPageElement
      extended by com.ibm.team.fvt.tests.web.WebElementWrapper
          extended by com.ibm.team.fvt.tests.web.WebCKEditorFramedElement

public class WebCKEditorFramedElement
extends WebElementWrapper

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:


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

WebCKEditorFramedElement

public WebCKEditorFramedElement(WebPage page)

WebCKEditorFramedElement

public WebCKEditorFramedElement(WebPage page,
                                org.openqa.selenium.By editorIframeLocator)
Method Detail

addHtml

public void addHtml(java.lang.String html)
Adds a html string to the editor's content

Parameters:
html - A HTML string to add to the editor's content

addText

public void addText(java.lang.String text)
Adds a text string to the editors content

Parameters:
text - A text string to add to the editor's content

addText

public void addText(java.lang.String text,
                    boolean addNewLine)
Adds a text string to the editors content

Parameters:
text - A text string to add to the editor's content
addNewLine - If true, a new line will be added after the new text

clearContent

public void clearContent()
Clears the editor's content


getHtmlContent

public java.lang.String getHtmlContent()
Returns the editor's content as a html string


getTextContent

public java.lang.String getTextContent()
Returns the editor's text content


moveCursorToBeginning

public void moveCursorToBeginning()
Moves the cursor to the beginning of the editor


moveCursorToEnd

public void moveCursorToEnd()
Moves the cursor to the end of the editor


setContent

public void setContent(java.lang.String content)
Set the text content of the editor.

Parameters:
content - The new text content for the editor

setContent

public void setContent(java.lang.String content,
                       boolean isHtml)
Set the content of the editor.

Parameters:
content - The new content for the editor
isHtml - Is the content a html string