org.specrunner.plugins
Interface IWaitPlugin

All Superinterfaces:
IActionType, IParameterHolder, IPlugin
All Known Implementing Classes:
AbstractPlugin, AbstractPluginDefine, AbstractPluginDual, AbstractPluginNamed, AbstractPluginObject, AbstractPluginObjectCompare, AbstractPluginObjectSelect, AbstractPluginObjectSelectNone, AbstractPluginObjectSelectUnique, AbstractPluginResource, AbstractPluginResourceReplaceable, AbstractPluginResourceReplaceableSrc, AbstractPluginScoped, AbstractPluginTable, AbstractPluginValue, PluginAssertion, PluginBean, PluginCall, PluginColumn, PluginCompareTree, PluginContains, PluginDefineCondition, PluginDefineGlobal, PluginDefineLocal, PluginDelete, PluginElse, PluginEquals, PluginExecute, PluginExecuteLatter, PluginExecuteRows, PluginFor, PluginHtml, PluginIf, PluginIfBranch, PluginImg, PluginImport, PluginInclude, PluginInsert, PluginIterable, PluginIterator, PluginLink, PluginMacro, PluginMap, PluginNop, PluginNotContains, PluginNotEquals, PluginPause, PluginReplacer, PluginReplacerMap, PluginScript, PluginSentence, PluginThen, PluginVerifyRows, PluginWhile

public interface IWaitPlugin
extends IPlugin

Stand for a plugin with sleep before execution.

Author:
Thiago Santos

Method Summary
 Long getWait()
          The plugin wait time.
 IModel<Long> getWaitModel()
          Return the wait based on a model.
 void setWait(Long wait)
          Gets time to sleep in milliseconds before test action.
 void setWaitModel(IModel<Long> waitModel)
          Set wait model object.
 
Methods inherited from interface org.specrunner.plugins.IPlugin
copy, doEnd, doStart, getParent, initialize, setParent
 
Methods inherited from interface org.specrunner.parameters.IParameterHolder
getParameters, setParameters
 
Methods inherited from interface org.specrunner.plugins.IActionType
getActionType
 

Method Detail

setWait

void setWait(Long wait)
Gets time to sleep in milliseconds before test action. This wait can be programatically added as a 'wait' attribute. The use of wait can be used for example, to overcome JavaScript problems, for example you can set wait to '4000' which means ISpecRunner will wait this time before go on.

Parameters:
wait - Wait time.

getWait

Long getWait()
The plugin wait time.

Returns:
The wait time.

getWaitModel

IModel<Long> getWaitModel()
Return the wait based on a model.

Returns:
A model.

setWaitModel

void setWaitModel(IModel<Long> waitModel)
Set wait model object.

Parameters:
waitModel - The model.


Copyright © 2014. All rights reserved.