Package org.mozilla.zest.core.v1
Class ZestActionSleep
- java.lang.Object
-
- org.mozilla.zest.core.v1.ZestElement
-
- org.mozilla.zest.core.v1.ZestStatement
-
- org.mozilla.zest.core.v1.ZestAction
-
- org.mozilla.zest.core.v1.ZestActionSleep
-
public class ZestActionSleep extends ZestAction
The Class ZestActionPrint.
-
-
Field Summary
-
Fields inherited from class org.mozilla.zest.core.v1.ZestElement
JSON_ELEMENT_TYPE
-
-
Constructor Summary
Constructors Constructor Description ZestActionSleep()Instantiates a newZestActionSleep.ZestActionSleep(int index)Instantiates a newZestActionSleep.ZestActionSleep(long milliseconds)Instantiates a newZestActionSleep.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ZestActionSleepdeepCopy()Deep copy.longgetMilliseconds()Stringinvoke(ZestResponse response, ZestRuntime runtime)Invoke.booleanisPassive()Checks if is passive.booleanisSameSubclass(ZestElement ze)Checks if is same subclass.voidsetMilliseconds(long milliseconds)-
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
-
ZestActionSleep
public ZestActionSleep()
Instantiates a newZestActionSleep.
-
ZestActionSleep
public ZestActionSleep(int index)
Instantiates a newZestActionSleep.- Parameters:
index- the index
-
ZestActionSleep
public ZestActionSleep(long milliseconds)
Instantiates a newZestActionSleep.- Parameters:
milliseconds- the number of milliseconds to sleep.
-
-
Method Detail
-
isSameSubclass
public boolean isSameSubclass(ZestElement ze)
Description copied from class:ZestElementChecks if is same subclass.- Overrides:
isSameSubclassin classZestAction- Parameters:
ze- the ze- Returns:
- true, if is same subclass
-
invoke
public String invoke(ZestResponse response, ZestRuntime runtime) throws ZestActionFailException
Description copied from class:ZestActionInvoke.- Specified by:
invokein classZestAction- Parameters:
response- the response- Returns:
- the string
- Throws:
ZestActionFailException- the zest action fail exception
-
getMilliseconds
public long getMilliseconds()
-
setMilliseconds
public void setMilliseconds(long milliseconds)
-
deepCopy
public ZestActionSleep deepCopy()
Description copied from class:ZestElementDeep copy.- Specified by:
deepCopyin classZestStatement- Returns:
- the zest element
-
isPassive
public boolean isPassive()
Description copied from class:ZestStatementChecks if is passive.- Specified by:
isPassivein classZestStatement- Returns:
- true, if is passive
-
-