20 lines
885 B
Markdown
20 lines
885 B
Markdown
**English** · [Dansk](Step-2-da) · [Bahasa Melayu](Step-2-ms)
|
|
|
|
# Step 2: Automated login
|
|
|
|
## What you gain
|
|
|
|
You learn explicit waits (`WebDriverWait`) and how to fill a form. `login()` types the e-mail and password from environment variables, submits, and waits until the class schedule is shown. A wrong password is reported by the site's error message.
|
|
|
|
## Where it is in the code
|
|
|
|
`src/snack_and_lift/application/session.py`
|
|
|
|
## Screenshot
|
|
|
|

|
|
|
|
> This screenshot needs a run with a real gym account. The maintainer adds it with `--screenshot-dir` (see [Getting started](Getting-Started)); until then the file `docs/images/step-2.png` is missing and the image above does not show.
|
|
|
|
[Previous: 1](Step-1) · [Home](Home) · [Next: 3](Step-3)
|