Package net.thucydides.core.webdriver
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.DurationajaxTimeoutprotected org.openqa.selenium.WebDriverdriver -
Constructor Summary
Constructors Constructor Description AbstractObjectInitialiser(org.openqa.selenium.WebDriver driver, long ajaxTimeoutInMilliseconds) -
Method Summary
Modifier and Type Method Description protected intajaxTimeoutInSecondsWithAtLeast1Second()abstract booleanapply(T input)booleantest(T input)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.common.base.Predicate
equalsMethods 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
- Specified by:
applyin interfacecom.google.common.base.Predicate<T>
-
test
-