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
- Open the calendar with the icon, go to another year and month, choose a day; check the field.
- The due date starts in 2027: going back to an earlier year needs the "previous" arrow.
- In VAF the element is the
div.input-group.date:#start-date.
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):
-
Page object
—
Bootstrap3DatePickerPage.cs: the locators of this page -
Native tests
—
Bootstrap3DatePickerTests.cs: the whole VAF chain in each test - The whole project and its README
- Latest test run (GitHub Actions)