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