Software Testing / Learning brief
Tom deletes the right row
In simple terms / 01
What this means in plain language
Every row of the Today list has a Delete button, and Tom's test deletes the wrong task. A street, a house and a room show how to narrow a locator until only one match is left, and why strict mode helps.
Complete lesson / 02
Understand the full idea, step by step
A letter says only "the kitchen". Every house on the street has one, so the postman cannot deliver it. A letter that says "the kitchen at number 12, Mill Street" arrives. Each part makes the search smaller.
Tom's test has the same trouble. It must press Delete in Daily List, a to-do list app. Every row of the Today list has a Delete button.
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 locator narrowing 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 street is a teaching picture.
Sources for this brief — 4 sources
- Market practice
Locators (Playwright documentation) ↗ — Microsoft (Playwright) · Locators are strict: an action on a locator that matches more than one element throws; first, last and nth are not recommended; filter and chaining narrow the match (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
Locator class reference (Playwright documentation) ↗ — Microsoft (Playwright) · Locator filter takes hasText, hasNotText, has and hasNot; a string matches as a case-insensitive substring; the inner locator of has is matched from the outer one; and() and or() combine locators; count does not throw (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.
- Market practice
Best practices (Playwright documentation) ↗ — Microsoft (Playwright) · Prefer locators that point at one element in a way that survives page changes (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).
- 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.