The same change, three approaches
Hand-written Playwright is a strong baseline: role-based locators survive many id changes, and strict locators refuse to guess. Locus adds locators chosen from recorded evidence, several per target, and a result that names which ones failed. It does not remove the need to maintain tests.
| Situation | Hand-written Playwright selectors | One selector per step | Locus |
|---|---|---|---|
| Who chooses the locator | You, in code. | The recorder, once, while you use the app. | Locus, from the recorded DOM, with at least three strategies (two when one is a unique stable id or a trustworthy role and name). |
| A test id is renamed | Only a selector that used the test id is affected. A role-based locator is not. | Fails if the saved selector used the id. | That strategy stops matching. The first strategy that finds exactly one element wins, the others are checked against it, and the step runs unless one of them points elsewhere. |
| Two elements match | Playwright's strict locators throw an error instead of clicking either. | Depends on the tool. | A strategy that matches two elements is not used to click. If no second strategy confirms the one that is left, the step fails as Ambiguous element and nothing is clicked. |
| When a step cannot run | You read the error and edit the code. | You edit the saved selector. | The result shows which strategy resolved and which failed. You edit the step in the editor. |
| Assertions | You write them. | Varies by tool. | Promoted from what the recording observed. None for unrecorded states. |
"One selector per step" describes the approach of saving a single locator for each target. It is not a statement about any particular product.
What Locus does not do
Limits worth knowing before you request access.
- It does not repair or rewrite tests by itself. A step it cannot resolve fails, and you decide the fix.
- It does not invent checks. Assertions come only from observations the recording captured.
- It does not cover screens you never recorded. A different outcome, such as an error banner, is a separate recording.
- It is not analytics and does not watch real visitors.
- It has no measured time saving to quote yet. It is a closed pilot.
When to write the test in code
If a test is mostly logic rather than a flow a person can click through, write it by hand. Locus is for the second kind.
Common questions are answered on the FAQ. How replay resolves a target is on the product page.
See how it behaves on your own app.
Locus is opening pilot access to a small group of engineering and QA teams.