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.
|
void |
displayObject()
Click on the xobject div to expand it, and waits until the information are loaded and displayed.
|
int |
getObjectNumber() |
SuggestInputElement |
getSuggestInput(String userPropertyName) |
boolean |
isDeleteLinkDisplayed() |
boolean |
isEditLinkDisplayed() |
boolean |
isObjectDisplayed()
Checks if the information are loaded and displayed.
|
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, waitUntilPageJSIsLoaded
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)@Unstable public boolean isObjectDisplayed()
true
if the object information are displayed (i.e. the object is expanded)@Unstable public void displayObject()
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 propertypublic boolean isDeleteLinkDisplayed()
true
if the delete link is displayed for this object.public boolean isEditLinkDisplayed()
true
if the edit link is displayed for this object.public int getObjectNumber()
Copyright © 2004–2021 XWiki. All rights reserved.