Package com.codeborne.selenide
Interface Conditional<T>
- All Known Subinterfaces:
Clipboard
- All Known Implementing Classes:
AppiumClipboard
,DefaultClipboard
,LocalStorage
,SelenoidClipboard
,SessionStorage
@ParametersAreNonnullByDefault
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
- Since:
- 5.23.0
-
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
- Returns:
- current Driver (used to take screenshots etc. in case of test failure)
-
object
- Returns:
- object under test
-
shouldHave
-
shouldHave
-
shouldNotHave
-
shouldNotHave
-