English · Dansk · Bahasa Malaysia
Step 3: Challenge, fill out a form
The lecture
The challenge: fill out a sign-up form with a first name, last name and email address, then click the Sign Up button. Some elements have no id or name that is easy to use, so the lecture points to CSS selectors.
The code
What the browser shows
The form after typing, before the click:

The page after Sign Up. The demo page checks the email address, and the default jane.doe@example.com is rejected. Run the program with your own address (--email you@yourdomain.com) to see the success page:

What we gained
- A CSS selector such as
input[name='fName'] finds an element that has no id.
- Steps 1 and 2 combine here: find, type, click.
- A real page can answer unexpectedly; the screenshot after the click shows what really happened.
- Keeping selectors in
constants.py means a changed page needs one edit, not a search through the code.