Package org.xwiki.ckeditor.test.po
Class CKEditor
- java.lang.Object
-
- org.xwiki.test.ui.po.BaseElement
-
- org.xwiki.ckeditor.test.po.CKEditor
-
@Unstable public class CKEditor extends BaseElement
Models a CKEditor instance.- Since:
- 1.13
- Version:
- $Id: 84d4888ca91a1028609e907c2a1e9a74b1b9c806 $
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImageDialogSelectModal
clickImageButton()
Click on the CKEditor image button.ImageDialogEditModal
clickImageButtonWhenImageExists()
Click on the CKEditor image button when an image widget is on focus (i.e., the image modal will be opened in edit mode).LinkSelectorModal
clickLinkButton()
Click on the link button on the toolbar.void
executeOnIframe(Runnable runnable)
Execute the runnable on the context of the CKEditor iframe.RichTextAreaElement
getRichTextArea()
CKEditor
waitToLoad()
Waits for CKEditor to load.-
Methods inherited from class org.xwiki.test.ui.po.BaseElement
getDriver, getUtil, isElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationInProgressMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilPageIsReady
-
-
-
-
Constructor Detail
-
CKEditor
public CKEditor(String name)
Create a new instance that can be used to interact with the specified CKEditor instance.- Parameters:
name
- the editor field name
-
-
Method Detail
-
waitToLoad
public CKEditor waitToLoad()
Waits for CKEditor to load.- Returns:
- this editor instance
-
getRichTextArea
public RichTextAreaElement getRichTextArea()
- Returns:
- the rich text area
-
clickImageButton
public ImageDialogSelectModal clickImageButton()
Click on the CKEditor image button.- Returns:
- a page object for the image selection modal
- Since:
- 14.7RC1
-
clickLinkButton
public LinkSelectorModal clickLinkButton()
Click on the link button on the toolbar.- Returns:
- the page object to interact with the link selection modal
- Since:
- 15.0RC1, 14.10.3
-
clickImageButtonWhenImageExists
public ImageDialogEditModal clickImageButtonWhenImageExists()
Click on the CKEditor image button when an image widget is on focus (i.e., the image modal will be opened in edit mode).- Returns:
- a page object for the image edit modal
- Since:
- 14.8RC1
-
executeOnIframe
public void executeOnIframe(Runnable runnable)
Execute the runnable on the context of the CKEditor iframe.- Parameters:
runnable
- the action to run on the context of the CKEditor iframe- Since:
- 14.8RC1
-
-