2
Step 3
Tirsvad edited this page 2026-10-28 12:04:40 +01:00

English · Dansk · Bahasa Melayu

Step 3: Book the next Tuesday class

What you gain

You learn to find an element relative to another one: the day group of the next Tuesday is found with an XPath ancestor lookup, then the 6pm card and its button. book_class() clicks the button and waits until its text changes.

Where it is in the code

src/snack_and_lift/application/booking.py

Screenshot

Step 3: Book the next Tuesday class

This image is an illustration: the bot ran against the project's local test pages (tests/e2e/fixtures), not against the live gym site. A run with a real account and --screenshot-dir (see Getting started) replaces it.

Previous: 2 · Home · Next: 4