Locator Groups
Locator groups cluster related selectors and bind them to a module and route context.
Workflow context
Section titled “Workflow context”Locator groups matter because they give captured selectors a route-aware home and make the picker suggestions much more reliable.
Do this
Section titled “Do this”- Go to
Locator Groups -> Create. - Set
Name(must be unique). - Select
Module. - Optionally set
Route(defaults to/). - Save.
Minimal example
Section titled “Minimal example”- Name:
Login Page - Module:
Authentication - Route:
/login
What good looks like
Section titled “What good looks like”- Keeps selectors scoped and maintainable.
- Reduces collision between similarly named locators.
- Improves discoverability in test-case flow editors.
- Makes route-based locator suggestions possible during live capture.