public class ObjectEditPane extends FormContainerElement
FormContainerElement.SelectElement
Constructor and Description |
---|
ObjectEditPane(org.openqa.selenium.By containerLocator,
String className,
int objectNumber)
Creates a new edit pane for an object of the specified type.
|
ObjectEditPane(org.openqa.selenium.WebElement container,
String className,
int objectNumber)
Creates a new edit pane for an object of the specified type.
|
Modifier and Type | Method and Description |
---|---|
org.openqa.selenium.By |
byPropertyName(String propertyName)
Creates a locator for the input fields corresponding to the given object property.
|
SuggestInputElement |
getSuggestInput(String userPropertyName) |
BootstrapDateTimePicker |
openDatePicker(String datePropertyName)
Opens the date picker for the specified date property of the edited object.
|
ObjectEditPane |
setPropertyValue(String propertyName,
String propertyValue)
Helper to fill property values quickly.
|
fillFieldsByElements, fillFieldsByName, getFieldValue, getFormAction, getFormElement, getSelectElement, hasField, setCheckBox, setCheckBox, setFieldValue, setFieldValue
getDriver, getUtil, isElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationInProgressMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage
public ObjectEditPane(org.openqa.selenium.By containerLocator, String className, int objectNumber)
containerLocator
- the element that locates 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)public ObjectEditPane(org.openqa.selenium.WebElement container, String className, int objectNumber)
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)public BootstrapDateTimePicker openDatePicker(String datePropertyName)
datePropertyName
- the name of a date property of the edited objectpublic SuggestInputElement getSuggestInput(String userPropertyName)
userPropertyName
- the name of a propertysuggest input
for the given propertypublic org.openqa.selenium.By byPropertyName(String propertyName)
propertyName
- the name of an object propertypublic ObjectEditPane setPropertyValue(String propertyName, String propertyValue)
propertyName
- the name of the property to setpropertyValue
- the value of the propertyCopyright © 2004–2019 XWiki. All rights reserved.