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 interface  Wait.StopCondition
    Wait-stop condition.
  • Field Summary

    Fields
    Modifier and Type Field Description
    static Wait defaultInterval
    Wait instance with 200ms interval.
  • Constructor Summary

    Constructors
    Constructor Description
    Wait​(long interval)
    Constructor.
  • Method Summary

    Modifier and Type Method Description
    static void sleep​(long millis)
    Sleep without checked exception.
    boolean wait​(long startTime, long timeout, Wait.StopCondition stopCondition)
    Wait until the wait-stop condition returns true or time runs out.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • defaultInterval

      public static final Wait defaultInterval
      Wait instance with 200ms interval.
  • Constructor Details

    • Wait

      public Wait​(long interval)
      Constructor.
      Parameters:
      interval - interval time (ms).
  • Method Details

    • sleep

      public static void sleep​(long millis) throws SeleneseRunnerRuntimeException
      Sleep without checked exception.
      Parameters:
      millis - the length of time to sleep in milliseconds.
      Throws:
      SeleneseRunnerRuntimeException - wrap InterruptedException.
    • wait

      public boolean wait​(long startTime, long timeout, Wait.StopCondition stopCondition)
      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.