Software Testing / Learning brief
Tom asks for the number on the door
In simple terms / 01
What this means in plain language
A redesign breaks Tom's check, and a worse slip hides behind a passing result. A story about directions to a house and about picking a locator that belongs to the element, not to its colour or place.
Complete lesson / 02
Understand the full idea, step by step
Tell a visitor "the house with the blue door" and they find it, until the owner paints the door. Tell them "number 12" and they still find it after the paint.
Daily List, a to-do list app, was redesigned over a weekend. On Monday Tom's check could not find the Add button, and one more check was passing for the wrong reason.
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.
Locators as taught in this academy, with an invented app. The locator runs were done for real with a small program on two made-up pages.
What this brief simplifies: Fiction labelled SYNTHETIC / TRAINING ONLY. Sources were seen only as search excerpts. The house is a teaching picture. No real browser was used.
Sources for this brief — 7 sources
- Market practice
Locator strategies (Selenium documentation) ↗ — Selenium project · Selenium lists locator strategies such as id, name, class name, CSS selector and XPath (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
Cascading Style Sheets (CSS) selectors and combinators (Mozilla developer docs) ↗ — Mozilla · Selectors and combinators: descendant, child, next-sibling and subsequent-sibling; attribute selectors with presence, exact, prefix, suffix and substring forms (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
XPath Version 1.0, World Wide Web Consortium Recommendation of 16 November 1999 ↗ — World Wide Web Consortium · XPath 1.0 addresses parts of an XML document; superseded by later versions but still widely used (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Recommendation, 16 November 1999. 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.
8 November2026 bounded primary update: XPath1.0 W3CRecommendation16November1999 selected locationpaths/steps and expanded-name element paragraphs actually read8November2026. Namespace-aware selectors; not DukeXMLvalidity evidence or wholelanguage audit.
- Market practice
Best practices (Playwright documentation) ↗ — Microsoft (Playwright) · Prefer user-facing locators such as role-based ones over CSS or XPath, which can break when the page structure 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).
- Market practice
Understanding common errors (Selenium documentation) ↗ — Selenium project · A stale element reference means the element was located earlier and is no longer attached to the page; locate it again (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
Mock APIs (Playwright documentation) ↗ — Microsoft (Playwright) · Intercept a request by URL pattern and fulfil it with fixed data (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.
- 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.