Member-only story
Selenium Workbook #36 Business View Client’s Booking (Date formatting)
Introduce `and` in XPath expression and Date formatting.
4 min readApr 27, 2024
This article is one of the “Web Test Automation Workbook” series, a set of bite-sized exercises (typically 15–20 mins). A practical and satisfying way to learn web test automation with Selenium WebDriver.
We continue #35, an online user made a booking on WhenWise. The business wants to view the booking in its diary (or calendar).
Learning Objectives
- XPath with
and
- Get formatted date
- Review: XPath
text()
Test Design
- Business user logs in
- Navigate to the tomorrow’s calendar
- Find and click the newly booked appointment title
- Verify the appointment, especially, the appointment date (dynamically tomorrow).
Test Data (Login) :
Site URL: https://whenwise.agileway.net
Login (Business): tutor@biz.com
Password: test01