Skip to content

Automation practice pages

Three pages to point a script at: a paginated table, a record that changes on every load, and a sign-up form. They may be automated, they do not change, and nothing floats over them. For Playwright, Selenium, Cypress, UiPath and scraping tutorials.

The rules

  • You may automate, scrape and test against every page under /practice/. No permission is needed, for a tutorial, a course, a book or a video.
  • There is no login, no captcha and no rate wall. Please stay near one request a second.
  • The exercise pages show no cookie banner and carry no ad slots, so nothing covers an element.
  • The data is fictional and contains no ID numbers, card numbers or passwords.
  • The records are free to reuse; see the licence page for a credit line.

Stable selectors

PageElementSelector
TableThe table#contacts or [data-testid="contacts-table"]
TableA data row[data-testid="row"], also #row-57 and [data-id="57"]
TableA cell by columntd[data-col="email"] (id, firstName, lastName, email, phone, city, state, zip)
TableNext and Previous links[data-testid="page-next"], [data-testid="page-prev"]; a[rel="next"] works too
TablePage position and total[data-testid="page-current"], [data-testid="page-count"], [data-testid="total"]
ProfileA value#first-name, #last-name, #username, #email, #phone, #birthday, #street, #city, #state, #zip
ProfileThe seed in use[data-testid="seed"]; [data-testid="seed-mode"] says pinned or random
ProfileLinks[data-testid="new-record"], [data-testid="permalink"]
FormInputs#firstName, #lastName, #email, #phone, #street, #city, #state, #zip, #contact-email, #contact-phone, #terms
FormButtons#submit, #reset
FormAn error message#error-email (one per field: error-firstName, error-zip, error-terms…), each with role="alert"
FormError count and result[data-testid="error-count"], #result, #result-json

These ids and data-testid attributes are the contract. Class names are styling and may change.

Exercises, with the answers

Each exercise has one right answer, printed here so a tutorial can assert it. The answers are computed from the live data when this page is built.

Table

  1. Open page 1 and count the data rows. Answer: 10.
  2. Find row 57 and read its email. It is on page 6. Answer: skuhlman5@example.org.
  3. Follow Next until it is no longer a link, collecting every row. Answer: 100 records over 10 pages. After each click, wait for [data-testid="page-current"] to show the new number before you read the rows. A script that reads at once gets the old page twice.
  4. Which state appears most often in the 100 records, and how many times? Answer: KS, 6 times.
  5. How many different last names are there? Answer: 91.

Profile

  1. Open /practice/profile?seed=demo and read the phone number. Answer: 702-555-0148.
  2. On the same page, read the full name. Answer: Darryl Osinski.
  3. Load /practice/profile twice with no seed. Assert that the seed differs between the two loads.
  4. Follow the permalink on a random record. Assert that every value is unchanged.

Form

  1. Submit the form empty and read the error count. Answer: 9. The phone is optional, so it has no error.
  2. Choose Phone as the contact method, leave the phone empty and submit. Answer: the phone error reads “Enter a phone number to be contacted by phone.”
  3. Fill the form with the seed=demo profile, choose Email, tick the box and submit. Assert that #result-json contains the email dosinski87@example.org.
  4. Type 1234 as the ZIP code and submit. Answer: “Enter a five-digit ZIP code.”

The form's rules

First name, last name, street and city are required. The email must look like an address. The ZIP code is five digits and the state comes from the list. The phone may be empty; when filled it needs ten digits, and it is required if you choose Phone as the contact method. The box must be ticked. Checks run in the page when you press Create account, and nothing is sent to a server.

For tutorial and course authors

Link to these pages and build lessons on them freely. The table's data is named practice-v1, and that name is printed on every table page so a reader can check they have the version your lesson was written for. For data without a browser, the free JSON API takes the same kind of seed, and the sample customer files go up to 20,000 rows.

Frequently asked questions

Am I allowed to automate these pages?

Yes. The practice pages are here to be scripted, scraped and tested against, in a tutorial, a course or your own learning, and you do not need to ask. Keep it to about one request a second. The rest of the site is ordinary: its terms of use apply there.

Will the data or the selectors change?

The table is version practice-v1 and is a fixed list of 100 records. A profile opened with a seed returns the same record every time. The ids and data-testid attributes listed on this page are the contract. If the data ever has to change, it gets a new version name, shown on the table page.

Is the data real?

No. Every record is fictional. Emails end in example.com, example.net or example.org, which accept no mail. Phone numbers use 555-0100 to 555-0199, the range reserved for fiction. Cities, states and ZIP codes are real and agree with each other; the streets are invented.

Why is there no cookie banner on the exercise pages?

A banner fixed to the bottom of the window covers whatever a script scrolls to, and a click meant for the submit button lands on the banner. So the table, profile and form pages show no banner and carry no ad slots. With no banner there is nothing to accept, so a first visit to them sets no analytics or advertising cookies.

Updated