Software Testing / Learning brief

Tom asks for the number on the door

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.

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

REVIEWED 2026-10-18

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
  1. 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)

    Per the search excerpt, the traditional ways to find an element are by id, by name, by Cascading Style Sheets selector and by XPath. Ids should be unique on a page. XPath is a path through the page treated as Extensible Markup Language (XML). · Checked 2026-10-18

    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.

  2. 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)

    Describes descendant, child, next-sibling and subsequent-sibling combinators and attribute selectors with presence, exact, prefix, suffix and substring forms. Practitioner or vendor guidance, not a standard unless stated. · Checked 2026-10-18

    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.

  3. 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)

    The XPath 1.0 language for addressing parts of an Extensible Markup Language (XML) document; superseded by later versions but still widely used and referenced by other World Wide Web Consortium (W3C) specifications. Practitioner or vendor guidance, not a standard unless stated. · Checked 2026-11-08

    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.

  4. 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)

    Recommends user-facing locators such as role-based ones over Cascading Style Sheets (CSS) or XPath, web-first assertions that retry, and avoiding fixed waits. Vendor documentation. Practitioner or vendor guidance, not a standard unless stated. · Checked 2026-10-18

    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).

  5. 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)

    Per the search excerpt, a stale element reference means the element is no longer attached to the page, usually because the page redrew it; the advice is to find the element again each time it is used. · Checked 2026-10-18

    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.

  6. 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)

    Describes intercepting a request by Uniform Resource Locator (URL) pattern and fulfilling it with fixed data, and says a matching request stalls unless continued, fulfilled or aborted. Vendor documentation. Practitioner or vendor guidance, not a standard unless stated. · Checked 2026-10-18

    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.

  7. Simplified educational illustration

    Payments Signal editorial teaching models — Payments Signal

    This site's own simplified teaching models. · Checked 2026-07-12

    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.

Learn this properly

START HERELocators: finding an element with CSS selectors and XPathPick a handle for each element that survives a redesign, write it as a Cascading Style Sheets (CSS) selector or an XPath, and fix stale-element and wrong-element slips.Opens at L0 Explain simply · about 20 min

Also covered in How UI automation works: browsers, drivers and structure.

Related briefs

Tom asks the three questions

Tom practises questions on DevOps, shift left and retrospectives. A school year with weekly quizzes shows him why testing early helps, why later testing still counts, and what a retrospective asks.

READ BRIEF

Tom asks where the tests come from

Tom practises questions on the three families of test technique and on white-box coverage. A house check shows him that the family follows the source of the tests, and he learns which one includes the other.

READ BRIEF