In this video, I demonstrate Module 04c of my Java Selenium Automation Framework, focusing on automating and validating React-based Date Picker widgets using Selenium WebDriver and TestNG.
This module covers real-world automation challenges commonly faced when testing modern UI components such as independent date and date-time pickers, and shows how to design stable, reliable test cases that avoid state leakage and regression issues.
🔹 What’s Covered in This Video
✅ TestNG-based automation framework setup
✅ React Date Picker handling (Select Date & Date And Time)
✅ Explicit waits and UI state validation
✅ Positive and negative test scenarios
✅ Date parsing and format validation
✅ Regression issue identification and resolution
✅ Extent Report integration with screenshots on failure
🔹 Key Test Scenarios Demonstrated
Default Date Validation
Verifies the Select Date field loads with a valid default value.
Date Selection Validation
Selects a specific date (25 Dec 2025) using the React calendar widget.
Unadjusted Date And Time Validation (Negative Scenario)
Confirms that updating Select Date does not automatically update Date And Time.
Assertion intentionally fails with a clear validation message.
Adjusted Date And Time Validation (Positive Scenario)
Explicitly adjusts the Date And Time picker to match Select Date.
Validates both dates match successfully and test passes.
🔹 Tools & Technologies Used
Java
Selenium WebDriver
TestNG
Explicit Waits
React Date Picker
Extent Reports
ChromeDriver
🔹 Key Takeaway
This module highlights the importance of:
Test isolation
Explicit UI state verification
Clear assertion messages
Avoiding flaky automation in React applications
These are critical skills when building production-ready Selenium automation frameworks.