org.xwiki.test.ui.po.editor
Class WYSIWYGEditPage

java.lang.Object
  extended by org.xwiki.test.ui.po.BaseElement
      extended by org.xwiki.test.ui.po.BasePage
          extended by org.xwiki.test.ui.po.editor.EditPage
              extended by org.xwiki.test.ui.po.editor.PreviewableEditPage
                  extended by org.xwiki.test.ui.po.editor.WYSIWYGEditPage

public class WYSIWYGEditPage
extends PreviewableEditPage

Represents the actions possible in WYSIWYG edit mode.

Since:
3.2M3
Version:
$Id: f705efa49975e96cc62ad8a581ce3e0965020080 $

Nested Class Summary
 
Nested classes/interfaces inherited from class org.xwiki.test.ui.po.editor.EditPage
EditPage.Editor
 
Field Summary
 
Fields inherited from class org.xwiki.test.ui.po.editor.EditPage
cancel, save, saveandcontinue, selectedEditMenuItem, syntaxIdSelect
 
Constructor Summary
WYSIWYGEditPage()
           
 
Method Summary
 String getContent()
          Get the content of the page.
 String getDocumentTitle()
           
 String getParent()
           
static WYSIWYGEditPage gotoPage(String space, String page)
          Go to the passed page in WYSIWYG edit mode.
 void setContent(String content)
          Sets the content of the editor (rich text area).
 WYSIWYGEditPage waitUntilPageIsLoaded()
          Waits until the page has loaded.
 
Methods inherited from class org.xwiki.test.ui.po.editor.PreviewableEditPage
clickPreview
 
Methods inherited from class org.xwiki.test.ui.po.editor.EditPage
clickCancel, clickContentMenuEditSubMenuEntry, clickSaveAndContinue, clickSaveAndView, getEditor, getSyntaxId, setSyntaxId
 
Methods inherited from class org.xwiki.test.ui.po.BasePage
canDelete, clickContentMenuTopEntry, copy, createInlinePage, createPage, createSpace, delete, edit, editClass, editInline, editObjects, editRights, editWiki, editWYSIWYG, getCurrentUser, getEditURL, getMetaDataValue, getPageMenuLink, getPageTitle, getPageURL, hasLoginLink, isAuthenticated, isNewDocument, login, logout, register, sendKeys, watchDocument, watchSpace
 
Methods inherited from class org.xwiki.test.ui.po.BaseElement
executeJavascript, getDriver, getUtil, makeAlertDialogSilent, makeConfirmDialogSilent, makeElementVisible, makeElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilElementDisappears, waitUntilElementEndsWithAttributeValue, waitUntilElementHasAttributeValue, waitUntilElementHasTextContent, waitUntilElementIsVisible, waitUntilElementsAreVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WYSIWYGEditPage

public WYSIWYGEditPage()
Method Detail

gotoPage

public static WYSIWYGEditPage gotoPage(String space,
                                       String page)
Go to the passed page in WYSIWYG edit mode.


getDocumentTitle

public String getDocumentTitle()
Overrides:
getDocumentTitle in class BasePage

getContent

public String getContent()
Get the content of the page.


setContent

public void setContent(String content)
Sets the content of the editor (rich text area).

Parameters:
content - the content to be set

getParent

public String getParent()
Returns:
the value of the parent field.

waitUntilPageIsLoaded

public WYSIWYGEditPage waitUntilPageIsLoaded()
Description copied from class: BasePage
Waits until the page has loaded. Normally we don't need to call this method since a click in Selenium2 is a blocking call. However there are cases (such as when using a shortcut) when we asynchronously load a page.

Overrides:
waitUntilPageIsLoaded in class BasePage
Returns:
this page


Copyright © 2004-2013 XWiki. All Rights Reserved.