org.xwiki.test.ui.po.editor
Class ObjectEditPane
java.lang.Object
org.xwiki.test.ui.po.BaseElement
org.xwiki.test.ui.po.FormElement
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 $
|
Constructor Summary |
ObjectEditPane(org.openqa.selenium.WebElement container,
String className,
int objectNumber)
Creates a new edit pane for an object of the specified type. |
| 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 |
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 objectclassName - the object typeobjectNumber - the object number (identifies the object in the set of objects of the same type)
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.