|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.test.ui.po.BaseElement
org.xwiki.test.ui.po.editor.wysiwyg.EditorElement
public class EditorElement
Models a WYSIWYG editor instance.
| Constructor Summary | |
|---|---|
EditorElement(String fieldId)
Creates a new instance that can be used to control the WYSIWYG editor that replaced the specified form field. |
|
| Method Summary | |
|---|---|
protected org.openqa.selenium.WebElement |
getContainer()
|
MenuBarElement |
getMenuBar()
|
RichTextAreaElement |
getRichTextArea()
|
org.openqa.selenium.WebElement |
getSourceTextArea()
|
ToolBarElement |
getToolBar()
|
void |
switchToSource()
Switches to the Source editor by clicking on the "Source" tab item and waits for the source text area to be initialized. |
void |
switchToSource(boolean wait)
Switches to the Source editor by clicking on the "Source" tab item. |
void |
switchToWysiwyg()
Switches to the WYSIWYG editor by clicking on the "WYSIWYG" tab item and waits for the rich text area to be initialized. |
void |
switchToWysiwyg(boolean wait)
Switches the WYSIWYG editor by clicking on the "WYSIWYG" tab item. |
EditorElement |
waitToLoad()
Waits for the WYSIWYG content editor to load. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EditorElement(String fieldId)
fieldId - the id of the text area field that was replaced by the WYSIWYG editor.| Method Detail |
|---|
public MenuBarElement getMenuBar()
public ToolBarElement getToolBar()
public RichTextAreaElement getRichTextArea()
public org.openqa.selenium.WebElement getSourceTextArea()
public EditorElement waitToLoad()
public void switchToSource()
public void switchToSource(boolean wait)
wait - true to wait for the source text area to be initialized, false otherwisepublic void switchToWysiwyg()
public void switchToWysiwyg(boolean wait)
wait - true to wait for the rich text area to be initialized, false otherwiseprotected org.openqa.selenium.WebElement getContainer()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||