Class Wait


  • public class Wait
    extends Object
    Re-implement "com.thoughtworks.selenium.Wait".
    • Field Detail

      • defaultInterval

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

      • Wait

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

      • 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.