Class FilterBuilderFilter
java.lang.Object
org.xwiki.test.ui.po.BaseElement
com.xwiki.projectmanagement.test.openproject.FilterBuilderFilter
public class FilterBuilderFilter
extends org.xwiki.test.ui.po.BaseElement
Models a filter inside the filter parameter of the open project macro.
- Since:
- 1.0-rc-4
- Version:
- $Id$
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds a constraint to this filter.org.openqa.selenium.WebElementgetConstraint(int index) org.openqa.selenium.WebElementgetValueElement(int index) setDateValue(int index, String value) Sets the value to a date constraint value.setOperator(int index, String operator) setSuggestValue(int index, String value) Sets the value to a selectized constraint value.Sets the value to a constraint value.Methods inherited from class org.xwiki.test.ui.po.BaseElement
getDriver, getUtil, isElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationInProgressMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilPageIsReady
-
Constructor Details
-
FilterBuilderFilter
public FilterBuilderFilter(org.openqa.selenium.WebElement container) - Parameters:
container- the filter wrapper that contains all the data.
-
-
Method Details
-
getPropertyName
- Returns:
- the property on which this filter filters on.
-
addConstraint
Adds a constraint to this filter.- Returns:
- this object.
-
getConstraint
public org.openqa.selenium.WebElement getConstraint(int index) - Parameters:
index- the index of the constraint that needs to be retrieved.- Returns:
- a model of the constraint identified by the index.
-
setOperator
- Parameters:
index- the index of the constraint that should have its operator updated.operator- the pretty name of the operator that should be set to the constraint identified by the index.- Returns:
- this object.
-
getValueElement
public org.openqa.selenium.WebElement getValueElement(int index) - Parameters:
index- the index of the constraint element present in this filter.- Returns:
- the value element of the constraint identified by the index.
-
setSuggestValue
Sets the value to a selectized constraint value.- Parameters:
index- the index of the constraint element present in this filter.value- the label of the value that should be selected from the selectized list.- Returns:
- this object.
-
setValue
Sets the value to a constraint value.- Parameters:
index- the index of the constraint element present in this filter.value- the value that should be set to the input element of the constraint.- Returns:
- this object.
-
setDateValue
Sets the value to a date constraint value.- Parameters:
index- the index of the constraint element present in this filter.value- the value that should be set to the date input element of the constraint.- Returns:
- this object.
-
getConstraints
- Returns:
- the list of constraints set in this filter.
-