Esempio n. 1
0
 /**
  * Predicate to use with {@link WaitWebElements#wait(Predicate)} methods which ensures that
  * evaluation will only be successful when this instance is not empty (that is, evaluates to one
  * or more {@link WebElement} instances.
  *
  * @param <T> the generic type
  * @return predicate that returns true if it is empty
  */
 public static <T extends Elements> Predicate<T> forUnexistence() {
   return WaitPredicates.<T>forSize(0);
 }
Esempio n. 2
0
 /**
  * Predicate to use with {@link WaitWebElements#wait(Predicate)} methods which ensures that
  * evaluation will only be successful when this instance is empty (that is, evaluates to zero
  * {@link org.openqa.selenium.WebElement} instances).
  *
  * @param <T> the generic type
  * @return predicate that returns true if it is empty
  */
 public static <T extends Elements> Predicate<T> forExistence() {
   return Predicates.not(WaitPredicates.<T>forUnexistence());
 }
 /* (non-Javadoc)
  * @see com.vilt.minium.actions.DefaultInteraction#doPerform()
  */
 @Override
 protected void doPerform() {
   waitOrTimeoutFor(WaitPredicates.forExistence());
 }