Package org.mozilla.zest.core.v1
Class ZestAssignFromElement
- java.lang.Object
-
- org.mozilla.zest.core.v1.ZestElement
-
- org.mozilla.zest.core.v1.ZestStatement
-
- org.mozilla.zest.core.v1.ZestAssignment
-
- org.mozilla.zest.core.v1.ZestAssignFromElement
-
public class ZestAssignFromElement extends ZestAssignment
-
-
Field Summary
-
Fields inherited from class org.mozilla.zest.core.v1.ZestElement
JSON_ELEMENT_TYPE
-
-
Constructor Summary
Constructors Constructor Description ZestAssignFromElement()ZestAssignFromElement(String variableName)
-
Method Summary
-
Methods inherited from class org.mozilla.zest.core.v1.ZestAssignment
getVariableName, isPassive, isSameSubclass, setVariableName
-
Methods inherited from class org.mozilla.zest.core.v1.ZestStatement
getIndex, getNext, getPrevious, init, insertAfter, insertBefore, isEnabled, remove, setEnabled, setNext, setPrev
-
Methods inherited from class org.mozilla.zest.core.v1.ZestElement
getElementType, setElementType
-
-
-
-
Constructor Detail
-
ZestAssignFromElement
public ZestAssignFromElement()
-
ZestAssignFromElement
public ZestAssignFromElement(String variableName)
-
-
Method Detail
-
assign
public String assign(ZestResponse response, ZestRuntime runtime) throws ZestAssignFailException
Description copied from class:ZestAssignmentInvoke.- Specified by:
assignin classZestAssignment- Parameters:
response- the response- Returns:
- the string
- Throws:
ZestAssignFailException- the zest assign fail exception
-
whereElementIs
public ZestAssignFromElement whereElementIs(String elementName)
-
whereAttributeIs
public ZestAssignFromElement whereAttributeIs(String attributeName, String attributeValueRegExp)
-
whereAttributeIs
public ZestAssignFromElement whereAttributeIs(String attributeName, String attributeValueRegExp, int flags)
-
first
public ZestAssignFromElement first()
-
last
public ZestAssignFromElement last()
-
atIndex
public ZestAssignFromElement atIndex(int index)
-
atIndex
public ZestAssignFromElement atIndex(int index, boolean reverse)
-
selectContent
public ZestAssignFromElement selectContent()
-
selectAttributeValue
public ZestAssignFromElement selectAttributeValue(String attributeName)
-
isFilteredByElementName
public boolean isFilteredByElementName()
-
getElementNameFilter
public String getElementNameFilter()
-
isFilteredByAttribute
public boolean isFilteredByAttribute()
-
getAttributeNameFilter
public String getAttributeNameFilter()
-
getAttributeValueFilter
public String getAttributeValueFilter()
-
getAttributeValueFilterFlags
public int getAttributeValueFilterFlags()
-
areFilteredElementsReversed
public boolean areFilteredElementsReversed()
-
getElementIndex
public int getElementIndex()
-
isReturningElement
public boolean isReturningElement()
-
isReturningAttribute
public boolean isReturningAttribute()
-
getReturnedAttributeName
public String getReturnedAttributeName()
-
removeFilter
public void removeFilter()
-
deepCopy
public ZestStatement deepCopy()
Description copied from class:ZestElementDeep copy.- Specified by:
deepCopyin classZestStatement- Returns:
- the zest element
-
-