Package org.xwiki.test.ui.po
Class EditablePropertyPane<T>
- java.lang.Object
-
- org.xwiki.test.ui.po.BaseElement
-
- org.xwiki.test.ui.po.EditablePropertyPane<T>
-
- Type Parameters:
T
- the property value type
- Direct Known Subclasses:
DocumentSyntaxPropertyPane
public class EditablePropertyPane<T> extends BaseElement
The page object used to edit a document or object property in-place.- Since:
- 12.6.3, 12.9RC1
- Version:
- $Id: e0dc616ca4a1036af21c54823ffaa5e7dbe284b9 $
-
-
Field Summary
Fields Modifier and Type Field Description protected org.openqa.selenium.WebElement
cancelButton
protected org.openqa.selenium.WebElement
editButton
protected org.openqa.selenium.WebElement
editor
protected org.openqa.selenium.WebElement
element
protected org.openqa.selenium.WebElement
saveButton
protected org.openqa.selenium.WebElement
viewer
-
Constructor Summary
Constructors Constructor Description EditablePropertyPane(String property)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EditablePropertyPane<T>
clickCancel()
EditablePropertyPane<T>
clickEdit()
EditablePropertyPane<T>
clickSave()
String
getDisplayValue()
String
getLabel()
T
getValue()
EditablePropertyPane<T>
setValue(T value)
Sets the property value while the property is being edited.-
Methods inherited from class org.xwiki.test.ui.po.BaseElement
getDriver, getUtil, isElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationInProgressMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilPageIsReady
-
-
-
-
Field Detail
-
element
protected final org.openqa.selenium.WebElement element
-
viewer
protected final org.openqa.selenium.WebElement viewer
-
editor
protected final org.openqa.selenium.WebElement editor
-
editButton
protected final org.openqa.selenium.WebElement editButton
-
cancelButton
protected final org.openqa.selenium.WebElement cancelButton
-
saveButton
protected final org.openqa.selenium.WebElement saveButton
-
-
Constructor Detail
-
EditablePropertyPane
public EditablePropertyPane(String property)
-
-
Method Detail
-
clickEdit
public EditablePropertyPane<T> clickEdit()
-
clickCancel
public EditablePropertyPane<T> clickCancel()
-
clickSave
public EditablePropertyPane<T> clickSave()
-
getLabel
public String getLabel()
-
getDisplayValue
public String getDisplayValue()
-
getValue
public T getValue()
- Returns:
- the property value while the property is being edited
- Since:
- 12.10.11, 13.4.6, 13.10RC1
-
setValue
public EditablePropertyPane<T> setValue(T value)
Sets the property value while the property is being edited.- Parameters:
value
- the new property value- Returns:
- this property pane
- Since:
- 12.10.11, 13.4.6, 13.10RC1
-
-