Software Testing / Learning brief
Tom asks for the button by its job
In simple terms / 01
What this means in plain language
Tom writes his first Playwright test. Leo restyles the page and Tom's old locators break. A crowd at a station shows why asking for an element by its job keeps a test steady when a page changes.
Complete lesson / 02
Understand the full idea, step by step
You are meeting a friend at a busy station. You can say "look for the red coat". Or you can say "look for the person at the ticket desk". The coat can change in a minute. The job stays.
Tom has the same choice in his first Playwright test. Playwright is a free tool that drives a real web browser. He must press the Add task button of Daily List, a to-do list app.
PLAIN WORDS · 1 in this section
- playwright
- a free Microsoft tool that drives a browser for tests
Evidence & review / 03
Evidence & review
The date on this lesson is when it went up on Payments Signal, not when its material was written — most of these were brought across from an earlier catalogue in a single run, which is why so many of them share a date. What the lesson says about the world is dated by the review above and by the sources below it.
Playwright locators as taught in this academy, with an invented app and invented people. Playwright changes often, so check the current guide.
What this brief simplifies: Fiction labelled SYNTHETIC / TRAINING ONLY. Sources were seen only as search excerpts, and no real run was made. The crowd is a teaching picture.
Sources for this brief — 5 sources
- Market practice
Locators (Playwright documentation) ↗ — Microsoft (Playwright) · Role locators are the preferred choice; label locators suit form fields; text locators suit non-interactive elements; test ids are a resilient fallback, and the attribute can be changed with testIdAttribute (search excerpt, page not opened)
Primary source opened and operative text inspected on 6 November 2026. Scope: Complete extracted primary article; examples inspected, not executed. Current live Playwright documentation reflects 1.65 where stated; explicit older examples retain their version. Source inspection is not an execution or compatibility-test claim. See the completed v45 Playwright analysis for source discrepancies and exact reading boundaries.
- Market practice
Best practices (Playwright documentation) ↗ — Microsoft (Playwright) · Prefer user-facing locators such as role-based ones over CSS or XPath, because the page structure can change (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail. A second search on 2026-10-20 returned this page for its title and matched the described content; the page was still not opened (search excerpt, page not opened).
- Market practice
Accessible Rich Internet Applications (ARIA) 1.2 ↗ — World Wide Web Consortium (W3C) · Roles are defined in a standard, and some roles need an accessible name (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: World Wide Web Consortium (W3C) Recommendation, 2023. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Using Accessible Rich Internet Applications (ARIA) (W3C Working Group Note) ↗ — World Wide Web Consortium (W3C) · Use a native HTML element when one gives the meaning and behaviour needed (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: World Wide Web Consortium (W3C) Working Group Note. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Simplified educational illustration
Payments Signal editorial teaching models — Payments Signal
Used wherever diagrams, scenarios, figures, or example values are didactic constructions rather than sourced facts; every such use carries a simplifications disclosure. All people, companies, banks, and list entries in examples are fictional.