TOPIC 13/4216 MINNOT STARTED

Self-healing locators and visual AI, and their risks

Some tools repair a broken test by themselves and judge screenshots like a person. Learn what they do, how they can hide a real bug, and how to keep them honest.

L1–L4 are part of the Pro pass

L0 Explain simply

Analogy: a satnav that reroutes silently. You drive to the shop on a Saturday. A road is closed. The satnav quietly picks another way and you arrive. That is wonderful. But now imagine it quietly picks a different town because the shop's name matches. You only notice when you get out of the car.

Daily List is a to-do list app. Tom, the tester, has a test that clicks the Add task button. Leo, the developer, changes the button's name inside the code. A normal test fails at once, because it cannot find the old name.

Some tools heal such a test. They look for a close match, click it and carry on. That saves Tom a morning of repair work. But if the match is wrong, the test still turns green. A green test then tells Tom less than he thinks.

The picture has limits. A satnav shows you a map and you can see the change. Many test tools give only a quiet note in a report. Whether you notice depends on whether you look.

(SYNTHETIC / TRAINING ONLY: Daily List and every person named here are made up.)

PLAIN WORDS · 1 in this section
satnav
A small device or phone app that gives driving directions.

PICTURE IT

The picture is the one the lesson above opens with. The table below shows how each part of it matches the software.

THE REAL JOB Letting a tool repair a broken test so that work continues, while a person still checks that each repair points at the right thing.

  1. Locator breaks
  2. Tool picks a match
  3. Person reads the heal
  4. Outcome check passes
Heal, then check the town name

HOW THE PICTURE MAPS

How each part of the picture matches the software
In the pictureIn the software
The satnavThe self-healing tool
The closed roadThe locator that no longer works
The new route it picksThe repair
Checking the town name on arrivalThe healing audit and the outcome check

WHERE THIS PICTURE STOPS

  • A satnav shows you a map, but many test tools give only a quiet line in a report.
  • A satnav knows the real place names. A test tool only compares clues, so it can mistake a look-alike for the real thing.
  • You choose your own destination. A test tool has no idea what the test is for.

HOOK

Heal, then check the town name.

REMEMBER IT THIS WAY

A rule of thumb: if you see this, think that.

If a tool healed a test, usually open the healing note and check the outcome before you trust the green.

What each part of the trick stands for
In the trickWhat it stands for
HealedLook for a close match, click it and carry on
Healing noteA quiet note in a report
Wrong matchThe test still turns green

Many tools give only a quiet note in a report, so you may have to go looking for it.

TELL A FRIEND

A satnav that quietly picks a new route is great, until it drives you to the wrong town because the names look alike.

OFTEN MIXED UP WITH Visual regression testing. The visual regression lesson compares screenshots with a plain method. This lesson adds the tools that repair tests and judge screenshots, and the risks of both.

Sources & standards — 4 sources
  1. Market practice

    Self-healing tests are table stakes, and most of them aren't real ↗ — Bug0 · Self-healing that picks a similar element can pass against the wrong one, so heals should be visible as reviewable changes (vendor blog, search excerpt, page not opened)

    A vendor blog on what real self-healing is and where it goes wrong. Not a standard. · 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; read at the time of writing. 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

    Self-Healing Test Automation: Benefits, Pitfalls and How to Avoid Masked Regressions ↗ — T-Plan · A test that heals around a real change can hide a bug; log healed locators and confidence, and review them (vendor guide, search excerpt, page not opened)

    A vendor guide on how healing can hide real regressions and how to log and review heals. Not a standard. · 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; read at the time of writing. 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

    Core concepts (Applitools Eyes documentation) ↗ — Applitools · The vendor says pixel-by-pixel comparison raises false alarms from small rendering differences, and offers match levels such as strict, layout and content, plus masks for changing areas; no independent benchmark was found (vendor documentation, search excerpt, page not opened)

    Vendor description of comparing screenshots with match levels and masks instead of exact pixel comparison. Not a standard. · 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; read at the time of writing. 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.

  4. Market practice

    Visual comparisons (Playwright documentation) ↗ — Microsoft · Playwright compares a screenshot with a saved baseline image and lets the tester set how many differing pixels are allowed (search excerpt, page not opened)

    Describes comparing a screenshot with a saved baseline and the threshold, maxDiffPixels and maxDiffPixelRatio options. Vendor documentation for one tool. Practitioner guidance, not a standard. · Checked 2026-11-06

    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.

PRACTISE AND KEEP

Sources for this topic — 4 sources
  1. Market practice

    Self-healing tests are table stakes, and most of them aren't real ↗ — Bug0 · Self-healing that picks a similar element can pass against the wrong one, so heals should be visible as reviewable changes (vendor blog, search excerpt, page not opened)

    A vendor blog on what real self-healing is and where it goes wrong. Not a standard. · 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; read at the time of writing. 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

    Self-Healing Test Automation: Benefits, Pitfalls and How to Avoid Masked Regressions ↗ — T-Plan · A test that heals around a real change can hide a bug; log healed locators and confidence, and review them (vendor guide, search excerpt, page not opened)

    A vendor guide on how healing can hide real regressions and how to log and review heals. Not a standard. · 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; read at the time of writing. 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

    Core concepts (Applitools Eyes documentation) ↗ — Applitools · The vendor says pixel-by-pixel comparison raises false alarms from small rendering differences, and offers match levels such as strict, layout and content, plus masks for changing areas; no independent benchmark was found (vendor documentation, search excerpt, page not opened)

    Vendor description of comparing screenshots with match levels and masks instead of exact pixel comparison. Not a standard. · 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; read at the time of writing. 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.

  4. Market practice

    Visual comparisons (Playwright documentation) ↗ — Microsoft · Playwright compares a screenshot with a saved baseline image and lets the tester set how many differing pixels are allowed (search excerpt, page not opened)

    Describes comparing a screenshot with a saved baseline and the threshold, maxDiffPixels and maxDiffPixelRatio options. Vendor documentation for one tool. Practitioner guidance, not a standard. · Checked 2026-11-06

    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.

Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.