Class AbstractObjectInitialiser<T>

java.lang.Object
net.thucydides.core.webdriver.AbstractObjectInitialiser<T>
All Implemented Interfaces:
com.google.common.base.Predicate<T>, java.util.function.Predicate<T>
Direct Known Subclasses:
DefaultPageObjectInitialiser, DefaultWidgetObjectInitialiser

public abstract class AbstractObjectInitialiser<T>
extends java.lang.Object
implements com.google.common.base.Predicate<T>
  • Field Summary

    Fields
    Modifier and Type Field Description
    protected java.time.Duration ajaxTimeout  
    protected org.openqa.selenium.WebDriver driver  
  • Constructor Summary

    Constructors
    Constructor Description
    AbstractObjectInitialiser​(org.openqa.selenium.WebDriver driver, long ajaxTimeoutInMilliseconds)  
  • Method Summary

    Modifier and Type Method Description
    protected int ajaxTimeoutInSecondsWithAtLeast1Second()  
    abstract boolean apply​(T input)  
    boolean test​(T input)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.google.common.base.Predicate

    equals

    Methods inherited from interface java.util.function.Predicate

    and, negate, or
  • Field Details

    • driver

      protected final org.openqa.selenium.WebDriver driver
    • ajaxTimeout

      protected final java.time.Duration ajaxTimeout
  • Constructor Details

    • AbstractObjectInitialiser

      public AbstractObjectInitialiser​(org.openqa.selenium.WebDriver driver, long ajaxTimeoutInMilliseconds)
  • Method Details

    • ajaxTimeoutInSecondsWithAtLeast1Second

      protected int ajaxTimeoutInSecondsWithAtLeast1Second()
    • apply

      public abstract boolean apply​(T input)
      Specified by:
      apply in interface com.google.common.base.Predicate<T>
    • test

      public boolean test​(T input)
      Specified by:
      test in interface com.google.common.base.Predicate<T>
      Specified by:
      test in interface java.util.function.Predicate<T>