Package com.codeborne.selenide
Interface Conditional<T>
- All Known Subinterfaces:
Clipboard
- All Known Implementing Classes:
AppiumClipboard
,DefaultClipboard
,LocalStorage
,SelenoidClipboard
,SessionStorage
public interface Conditional<T>
Implements wait for non WebElement based conditions. Accepts predicate as condition.
To use it just implement for appropriate type,
e.g. YourType implements Conditional<YourType>
Waiter
-
Method Summary
Modifier and TypeMethodDescriptiondriver()
object()
default Conditional<T>
shouldHave
(ObjectCondition<T> predicate) default Conditional<T>
shouldHave
(ObjectCondition<T> predicate, Duration timeout) default Conditional<T>
shouldNotHave
(ObjectCondition<T> predicate) default Conditional<T>
shouldNotHave
(ObjectCondition<T> predicate, Duration timeout)
-
Method Details
-
driver
Driver driver()- Returns:
- current Driver (used to take screenshots etc. in case of test failure)
-
object
T object()- Returns:
- object under test
-
shouldHave
-
shouldHave
@CanIgnoreReturnValue default Conditional<T> shouldHave(ObjectCondition<T> predicate, Duration timeout) -
shouldNotHave
-
shouldNotHave
@CanIgnoreReturnValue default Conditional<T> shouldNotHave(ObjectCondition<T> predicate, Duration timeout)
-