Package jp.vmi.selenium.selenese.utils
Class Wait
java.lang.Object
jp.vmi.selenium.selenese.utils.Wait
public class Wait extends Object
Re-implement "com.thoughtworks.selenium.Wait".
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceWait.StopConditionWait-stop condition. -
Field Summary
Fields Modifier and Type Field Description static WaitdefaultIntervalWait instance with 200ms interval. -
Constructor Summary
Constructors Constructor Description Wait(long interval)Constructor. -
Method Summary
Modifier and Type Method Description static voidsleep(long millis)Sleep without checked exception.booleanwait(long startTime, long timeout, Wait.StopCondition stopCondition)Wait until the wait-stop condition returns true or time runs out.
-
Field Details
-
defaultInterval
Wait instance with 200ms interval.
-
-
Constructor Details
-
Wait
public Wait(long interval)Constructor.- Parameters:
interval- interval time (ms).
-
-
Method Details
-
sleep
Sleep without checked exception.- Parameters:
millis- the length of time to sleep in milliseconds.- Throws:
SeleneseRunnerRuntimeException- wrap InterruptedException.
-
wait
Wait until the wait-stop condition returns true or time runs out.- Parameters:
startTime- start time.timeout- timeout (ms). (>= 0)stopCondition- wait-stop condition.- Returns:
- true if stop condition is sutisfied.
-