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

java.lang.Object
  extended by org.xwiki.test.ui.po.BaseElement
      extended by org.xwiki.test.ui.po.FormElement
          extended by org.xwiki.test.ui.po.editor.ObjectEditPane

public class ObjectEditPane
extends FormElement

Represents a group of form fields that are used to edit an object of a specific type.

Since:
5.1RC1
Version:
$Id: a4cd871244036b20da60488a8ad9ed11c3062a5d $

Nested Class Summary
 
Nested classes/interfaces inherited from class org.xwiki.test.ui.po.FormElement
FormElement.SelectElement
 
Constructor Summary
ObjectEditPane(org.openqa.selenium.WebElement container, String className, int objectNumber)
          Creates a new edit pane for an object of the specified type.
 
Method Summary
 org.openqa.selenium.By byPropertyName(String propertyName)
          Creates a locator for the input fields corresponding to the given object property.
 UserPicker getUserPicker(String userPropertyName)
           
 DatePicker openDatePicker(String datePropertyName)
          Opens the date picker for the specified date property of the edited object.
 
Methods inherited from class org.xwiki.test.ui.po.FormElement
fillFieldsByElements, fillFieldsByName, getFieldValue, getForm, getSelectElement, setCheckBox, setCheckBox, setFieldValue, setFieldValue
 
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

ObjectEditPane

public ObjectEditPane(org.openqa.selenium.WebElement container,
                      String className,
                      int objectNumber)
Creates a new edit pane for an object of the specified type. The form fields from the given container should correspond to properties of the specified type.

Parameters:
container - the element that wraps the form fields used to edit the object
className - the object type
objectNumber - the object number (identifies the object in the set of objects of the same type)
Method Detail

openDatePicker

public DatePicker openDatePicker(String datePropertyName)
Opens the date picker for the specified date property of the edited object.

Parameters:
datePropertyName - the name of a date property of the edited object
Returns:
the date picker

getUserPicker

public UserPicker getUserPicker(String userPropertyName)
Parameters:
userPropertyName - the name of a property of type List of Users
Returns:
a user picker for a property of type List of Users

byPropertyName

public org.openqa.selenium.By byPropertyName(String propertyName)
Creates a locator for the input fields corresponding to the given object property.

Parameters:
propertyName - the name of an object property
Returns:
the locator for the input field corresponding to the specified property


Copyright © 2004-2013 XWiki. All Rights Reserved.