Class DateConditions
java.lang.Object
com.codeborne.selenide.conditions.datetime.DateConditions
Assert that element contains "value" attribute with date value that is satisfied to the provided `options`
Samples:
$("input").shouldHave(date(LocalDate.of(2020, 11, 12)).format("dd/MM/yyyy"));
$("input").shouldHave(date(withFormat("dd/MM/yyyy")));
- Since:
- 6.16.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic TemporalCondition<LocalDate>
static TemporalCondition<LocalDate>
static TemporalCondition<LocalDate>
dateBetween
(LocalDate from, LocalDate until) static TemporalCondition<LocalDate>
dateBetween
(LocalDate from, LocalDate until, String pattern) static TemporalFormatCondition<LocalDate>
dateFormat
(String pattern)
-
Constructor Details
-
DateConditions
public DateConditions()
-
-
Method Details
-
date
-
date
@Nonnull @CheckReturnValue public static TemporalCondition<LocalDate> date(LocalDate date, String pattern) -
dateBetween
@Nonnull @CheckReturnValue public static TemporalCondition<LocalDate> dateBetween(LocalDate from, LocalDate until) -
dateBetween
@Nonnull @CheckReturnValue public static TemporalCondition<LocalDate> dateBetween(LocalDate from, LocalDate until, String pattern) -
dateFormat
@Nonnull @CheckReturnValue public static TemporalFormatCondition<LocalDate> dateFormat(String pattern)
-