org.xwiki.appwithinminutes.test.po
Class EntryEditPage

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.ViewPage
              extended by org.xwiki.test.ui.po.InlinePage
                  extended by org.xwiki.appwithinminutes.test.po.EntryEditPage

public class EntryEditPage
extends InlinePage

Represents the actions possible when editing an application entry.

Since:
4.2M1
Version:
$Id: baf818c69b2d088d417a75fc83f54b96193b5608 $

Constructor Summary
EntryEditPage()
           
 
Method Summary
 EditorElement getContentEditor()
           
 List<String> getFieldNames()
           
 String getLabel(String fieldName)
          Retrieves the label of the specified form field.
 String getTitle()
           
 String getValue(String fieldName)
          Retrieves the value of the specified form field
 void setTitle(String title)
          Sets the entry title, if the application class has a Title field.
 void setValue(String fieldName, String fieldValue)
          Sets the value of the specified form field
 
Methods inherited from class org.xwiki.test.ui.po.InlinePage
clickCancel, clickPreview, clickSaveAndContinue, clickSaveAndView, createViewPage, getContent, getForm
 
Methods inherited from class org.xwiki.test.ui.po.ViewPage
clickBreadcrumbLink, clickWantedLink, editSection, exists, getBreadcrumbContent, hasBreadcrumbContent, isInlinePage, openAttachmentsDocExtraPane, openCommentsDocExtraPane, openHistoryDocExtraPane, waitForDocExtraPaneActive, waitUntilContent
 
Methods inherited from class org.xwiki.test.ui.po.BasePage
canDelete, clickContentMenuEditSubMenuEntry, clickContentMenuTopEntry, copy, createInlinePage, createPage, createSpace, delete, edit, editClass, editInline, editObjects, editRights, editWiki, editWYSIWYG, getCurrentUser, getDocumentTitle, getEditURL, getMetaDataValue, getPageMenuLink, getPageTitle, getPageURL, hasLoginLink, isAuthenticated, isNewDocument, login, logout, register, sendKeys, waitUntilPageIsLoaded, 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

EntryEditPage

public EntryEditPage()
Method Detail

getLabel

public String getLabel(String fieldName)
Retrieves the label of the specified form field.

Parameters:
fieldName - the name of a form field
Returns:
the label of the specified form field

getValue

public String getValue(String fieldName)
Retrieves the value of the specified form field

Parameters:
fieldName - the name of a form field
Returns:
the value of the specified form field

setValue

public void setValue(String fieldName,
                     String fieldValue)
Sets the value of the specified form field

Parameters:
fieldName - the name of a form field
fieldValue - the new value for the specified form field

getFieldNames

public List<String> getFieldNames()
Returns:
the list of form field names available on this page

setTitle

public void setTitle(String title)
Sets the entry title, if the application class has a Title field.

Parameters:
title - the entry title

getTitle

public String getTitle()
Returns:
the value of the title input

getContentEditor

public EditorElement getContentEditor()
Returns:
the content editor


Copyright © 2004-2013 XWiki. All Rights Reserved.