20 lines
894 B
Markdown
20 lines
894 B
Markdown
**English** · [Dansk](Step-4-da) · [Bahasa Melayu](Step-4-ms)
|
|
|
|
# Step 4: Check if a class is already booked
|
|
|
|
## What you gain
|
|
|
|
You learn to read the state of a button before acting: "Book Class", "Join Waitlist", "Booked" or "Waitlisted". A class that is already booked is not clicked again, and the bot prints a ✓ line that says what it did.
|
|
|
|
## Where it is in the code
|
|
|
|
`src/snack_and_lift/domain/rules.py`
|
|
|
|
## Screenshot
|
|
|
|

|
|
|
|
> 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](Getting-Started)) replaces it.
|
|
|
|
[Previous: 3](Step-3) · [Home](Home) · [Next: 5](Step-5)
|