Vision Automation Framework · Practice pages · Date picker (Bootstrap 3)

Date picker (Bootstrap 3)

The Bootstrap 3 datetimepicker 4.17, with Bootstrap 3.4, jQuery 3.7 and moment.js 2.30 — the way many older applications still have it. The date format is MM/DD/YYYY.

Selected: none

What to practise

In VAF: AsDateTimeBootstrap3DatepickerV4().


Tested in VAF-Demo

A test of this page from VAF-Demo: the whole VAF chain, from the page to the element, is in the test.

[Test]
public void DateIsChosenAndRead()
{
    var date = new DateTime(2026, 10, 5);

    SharedContext.App.Should().HaveSection<Bootstrap3DatePickerPage.Start>()
        .That.Should().HaveElement<Bootstrap3DatePickerPage.Start.Picker>()
            .That.AsDateTimeBootstrap3DatepickerV4().LetsSelectDate(date)
        .AndAlso().Should().HaveElement<Bootstrap3DatePickerPage.Start.Selected>()
            .That.AsLabelText().Should().HaveValue("10/05/2026");
}

On GitHub (opens in a new tab):