Pw Locator Fixer

Audits a Playwright spec or Page Object for brittle locators — XPath, CSS classes, nth-child/positional selectors, deep DOM chains — and proposes resilient, JavaScript- or TypeScript-matched replacements without changing test intent. Use when an SDET says "fix these locators", "my selectors are flaky", "replace XPath with getByRole", "review the selectors in this Page Object", or reports a strict-mode violation. Produces a before/after rewrite map plus reasoning — the engineer verifies each swap against the real DOM.

Shivani26Singh Updated

File contents

Shivani26Singh/skill-library/tree/main/Automation_Playwright/pw-locator-fixer commit ee4c375cc2

Frequently asked questions

npx skillmds@latest add shivani26singh/pw-locator-fixer