Prompt file imported from Harsha-Vardhan-69/Resuable-Automation-Selenium (
.github/prompts/review-locator-quality.prompt.md). Fill in{{input}}before use. Copyright stays with the author.
Related skills: locator-wait-stabilization, page-flow-pattern-builder.
Use .github/workflow/Framework.md as the source of truth and review locator quality in read-only mode before making changes.
Requirements:
- Inspect the current locator definitions, surrounding page-flow usage, and any available failure evidence.
- Flag brittle patterns such as deep XPath chains, text-only selectors, unstable indexes, timing-sensitive click targets, and duplicated selector logic.
- Suggest stronger alternatives using stable attributes, clearer scoping, or reusable wait-friendly patterns that fit this repo.
- Distinguish between urgent flaky-risk locators and acceptable locators that do not need change yet.
- Stay read-only unless the user explicitly asks you to implement the improvements.
Locator review scope: {{input}}