Package org.mozilla.zest.core.v1
Class ZestLoopClientElements
- java.lang.Object
-
- org.mozilla.zest.core.v1.ZestElement
-
- org.mozilla.zest.core.v1.ZestStatement
-
- org.mozilla.zest.core.v1.ZestLoop<String>
-
- org.mozilla.zest.core.v1.ZestLoopClientElements
-
- All Implemented Interfaces:
Enumeration<ZestStatement>,ZestContainer
public class ZestLoopClientElements extends ZestLoop<String>
This class represent a loop through a set of client elements
-
-
Field Summary
-
Fields inherited from class org.mozilla.zest.core.v1.ZestElement
JSON_ELEMENT_TYPE
-
-
Constructor Summary
Constructors Constructor Description ZestLoopClientElements()Instantiates a new loop of client elements.ZestLoopClientElements(String variableName, String windowHandle, String type, String element, String attribute)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ZestLoopClientElementsdeepCopy()Deep copy.voidendLoop()StringgetAttribute()ZestLoopStateClientElementsgetCurrentState()returns the current state of the loop.StringgetCurrentToken()return the current token considered inside the loop.StringgetElement()ZestLoopTokenClientElementsSetgetSet()returns the set of the tokens in this loop.StringgetType()StringgetWindowHandle()voidincrease()increase the loop indexesbooleanisLastState()checks if the loop is on its last statebooleanloop()voidsetAttribute(String attribute)voidsetElement(String element)voidsetType(String type)voidsetWindowHandle(String windowHandle)voidtoLastState()ends the loop taking its current state to the last state-
Methods inherited from class org.mozilla.zest.core.v1.ZestLoop
add, addStatement, copyStatements, endLoop, getChildBefore, getChildren, getCurrentIndex, getCurrentStatementIndex, getIndex, getLast, getRuntime, getStatement, getStatements, getVariableName, getVariableNames, hasMoreElements, init, init, isPassive, isSameSubclass, loop, move, nextElement, onControlBreak, onControlNext, setCurrentState, setPrefix, setPrev, setSet, setStatements, setVariableName
-
Methods inherited from class org.mozilla.zest.core.v1.ZestStatement
getIndex, getNext, getPrevious, init, insertAfter, insertBefore, isEnabled, remove, setEnabled, setNext
-
Methods inherited from class org.mozilla.zest.core.v1.ZestElement
getElementType, setElementType
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Enumeration
asIterator
-
-
-
-
Method Detail
-
deepCopy
public ZestLoopClientElements deepCopy()
Description copied from class:ZestElementDeep copy.
-
getCurrentState
public ZestLoopStateClientElements getCurrentState()
Description copied from class:ZestLoopreturns the current state of the loop.- Overrides:
getCurrentStatein classZestLoop<String>- Returns:
- the current state
-
getSet
public ZestLoopTokenClientElementsSet getSet()
Description copied from class:ZestLoopreturns the set of the tokens in this loop.
-
isLastState
public boolean isLastState()
Description copied from class:ZestLoopchecks if the loop is on its last state- Specified by:
isLastStatein classZestLoop<String>- Returns:
- true if the loop is over
-
increase
public void increase()
Description copied from class:ZestLoopincrease the loop indexes
-
toLastState
public void toLastState()
Description copied from class:ZestLoopends the loop taking its current state to the last state- Specified by:
toLastStatein classZestLoop<String>
-
getCurrentToken
public String getCurrentToken()
Description copied from class:ZestLoopreturn the current token considered inside the loop.- Overrides:
getCurrentTokenin classZestLoop<String>- Returns:
- the current token considered inside the loop
-
loop
public boolean loop()
-
endLoop
public void endLoop()
-
getWindowHandle
public String getWindowHandle()
-
getElement
public String getElement()
-
getType
public String getType()
-
getAttribute
public String getAttribute()
-
setWindowHandle
public void setWindowHandle(String windowHandle)
-
setElement
public void setElement(String element)
-
setType
public void setType(String type)
-
setAttribute
public void setAttribute(String attribute)
-
-