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

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.WebEditorElement

public class WebEditorElement
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:

Following internal features are also defined or specialized by this page:


Constructor Summary
WebEditorElement(WebPage page)
           
WebEditorElement(WebPage page, org.openqa.selenium.By editorIframeLocator)
           
 
Method Summary
 java.lang.String getHtmlContent()
          Get the HTML content of the editor.
 void setContent(java.lang.String text)
          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

WebEditorElement

public WebEditorElement(WebPage page)

WebEditorElement

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

getHtmlContent

public java.lang.String getHtmlContent()
Get the HTML content of the editor.

This allows tester to modify the editor content without breaking the entire HTML content...

Returns:
The content of the editor as a string of the HTML inner tree of the document <body&g; tag

setContent

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

Parameters:
text - The text to set the editor content with