posterus-ltd/yarkr-public/playwright-locators
Choose resilient Playwright locators (getByRole, getByLabel, getByTestId) and filter/chain them instead of brittle CSS or XPath. Use when writing or fixing selectors, when tests break after markup changes, or on strict-mode "resolved to N elements" errors.
Agent skill · version 0.0.0-arks-library.1792108573.gbefeb5a · from posterus-ltd/yarkr-public
Install
npx yarkr-cli add skill:posterus-ltd/yarkr-public/playwright-locatorsWithout Node.js, on macOS and Linux (curl or wget):
curl -fsSL https://yarkr.com/install.sh | sh -s -- add skill:posterus-ltd/yarkr-public/playwright-locators
wget -qO- https://yarkr.com/install.sh | sh -s -- add skill:posterus-ltd/yarkr-public/playwright-locatorsOn Windows, in PowerShell:
irm https://yarkr.com/install.ps1 | iex; yarkr add skill:posterus-ltd/yarkr-public/playwright-locatorsWorks with Claude Code, Codex, opencode, Cursor, any harness over MCP.