Class Pollers

java.lang.Object
com.atlassian.crowd.pageobjects.utils.Pollers

public class Pollers extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T> void
    waitUntil(com.google.common.base.Supplier<T> supplier, org.hamcrest.Matcher<? super T> matcher)
     
    static void
    waitUntilFalse(com.google.common.base.Supplier<Boolean> supplier, Duration timeout)
    Waits until supplier is false by evaluating it every 200 ms until {code}timeout{code} is reached.
    static com.atlassian.pageobjects.elements.PageElement
    waitUntilPresent(com.google.common.base.Supplier<com.atlassian.pageobjects.elements.PageElement> supplier)
     
    static void
    waitUntilTrue(com.google.common.base.Supplier<Boolean> supplier, Duration timeout)
    Waits until supplier is true by evaluating it every 200 ms until {code}timeout{code} is reached.

    Methods inherited from class java.lang.Object

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

    • Pollers

      public Pollers()
  • Method Details

    • waitUntilPresent

      public static com.atlassian.pageobjects.elements.PageElement waitUntilPresent(com.google.common.base.Supplier<com.atlassian.pageobjects.elements.PageElement> supplier)
    • waitUntil

      public static <T> void waitUntil(com.google.common.base.Supplier<T> supplier, org.hamcrest.Matcher<? super T> matcher)
    • waitUntilTrue

      public static void waitUntilTrue(com.google.common.base.Supplier<Boolean> supplier, Duration timeout)
      Waits until supplier is true by evaluating it every 200 ms until {code}timeout{code} is reached.
    • waitUntilFalse

      public static void waitUntilFalse(com.google.common.base.Supplier<Boolean> supplier, Duration timeout)
      Waits until supplier is false by evaluating it every 200 ms until {code}timeout{code} is reached.